123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- # Add ungoogled-chromium-specific code to third_party/ungoogled/
- --- /dev/null
- +++ b/third_party/ungoogled/BUILD.gn
- @@ -0,0 +1,10 @@
- +# Copyright (c) 2018 The ungoogled-chromium Authors. All rights reserved.
- +# Use of this source code is governed by a BSD-style license that can be
- +# found in the LICENSE file.
- +
- +component("switches") {
- + sources = [
- + "ungoogled_switches.h",
- + "ungoogled_switches.cc",
- + ]
- +}
- --- /dev/null
- +++ b/third_party/ungoogled/ungoogled_switches.cc
- @@ -0,0 +1,18 @@
- +// Copyright (c) 2018 The ungoogled-chromium Authors. All rights reserved.
- +// Use of this source code is governed by a BSD-style license that can be
- +// found in the LICENSE file.
- +
- +#include "third_party/ungoogled/ungoogled_switches.h"
- +
- +namespace switches {
- +
- +// Enable fingerprinting deception for getClientRects and getBoundingClientRect
- +const char kFingerprintingClientRectsNoise[] = "fingerprinting-client-rects-noise";
- +
- +// Enable fingerprinting deception for measureText
- +const char kFingerprintingCanvasMeasureTextNoise[] = "fingerprinting-canvas-measuretext-noise";
- +
- +// Enable fingerprinting deception for Canvas image data
- +const char kFingerprintingCanvasImageDataNoise[] = "fingerprinting-canvas-image-data-noise";
- +
- +} // namespace switches
- --- /dev/null
- +++ b/third_party/ungoogled/ungoogled_switches.h
- @@ -0,0 +1,18 @@
- +// Copyright (c) 2018 The ungoogled-chromium Authors. All rights reserved.
- +// Use of this source code is governed by a BSD-style license that can be
- +// found in the LICENSE file.
- +
- +// Defines all the fingerprinting command-line switches.
- +
- +#ifndef THIRD_PARTY_UNGOOGLED_FINGERPRINTING_SWITCHES_H_
- +#define THIRD_PARTY_UNGOOGLED_FINGERPRINTING_SWITCHES_H_
- +
- +namespace switches {
- +
- +extern const char kFingerprintingClientRectsNoise[];
- +extern const char kFingerprintingCanvasMeasureTextNoise[];
- +extern const char kFingerprintingCanvasImageDataNoise[];
- +
- +}
- +
- +#endif // THIRD_PARTY_UNGOOGLED_FINGERPRINTING_SWITCHES_H_
|