summaryrefslogtreecommitdiff
path: root/www/chromium-uc/patches/extra/ungoogled-chromium/add-components-ungoogled.patch
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium-uc/patches/extra/ungoogled-chromium/add-components-ungoogled.patch')
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-components-ungoogled.patch67
1 files changed, 0 insertions, 67 deletions
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-components-ungoogled.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-components-ungoogled.patch
deleted file mode 100644
index 167eaec..0000000
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-components-ungoogled.patch
+++ /dev/null
@@ -1,67 +0,0 @@
1# Add ungoogled-chromium-specific code to components/ungoogled/
2
3--- /dev/null
4+++ components/ungoogled/BUILD.gn
5@@ -0,0 +1,14 @@
6+# Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
7+# Use of this source code is governed by a BSD-style license that can be
8+# found in the LICENSE file.
9+
10+component("ungoogled_switches") {
11+ sources = [
12+ "ungoogled_switches.h",
13+ "ungoogled_switches.cc",
14+ ]
15+
16+ defines = [ "IS_UNGOOGLED_IMPL" ]
17+
18+ deps = [ "//base" ]
19+}
20--- /dev/null
21+++ components/ungoogled/ungoogled_switches.cc
22@@ -0,0 +1,21 @@
23+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
24+// Use of this source code is governed by a BSD-style license that can be
25+// found in the LICENSE file.
26+
27+#include "components/ungoogled/ungoogled_switches.h"
28+
29+namespace switches {
30+
31+// Enable fingerprinting deception for getClientRects and getBoundingClientRect
32+const char kFingerprintingClientRectsNoise[] = "fingerprinting-client-rects-noise";
33+
34+// Enable fingerprinting deception for measureText
35+const char kFingerprintingCanvasMeasureTextNoise[] = "fingerprinting-canvas-measuretext-noise";
36+
37+// Enable fingerprinting deception for Canvas image data
38+const char kFingerprintingCanvasImageDataNoise[] = "fingerprinting-canvas-image-data-noise";
39+
40+// Set PDF Plugin name, for websites that analyze JavaScript API navigator.plugins
41+const char kPDFPluginName[] = "pdf-plugin-name";
42+
43+} // namespace switches
44--- /dev/null
45+++ components/ungoogled/ungoogled_switches.h
46@@ -0,0 +1,21 @@
47+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
48+// Use of this source code is governed by a BSD-style license that can be
49+// found in the LICENSE file.
50+
51+// Defines all the fingerprinting command-line switches.
52+
53+#ifndef THIRD_PARTY_UNGOOGLED_FINGERPRINTING_SWITCHES_H_
54+#define THIRD_PARTY_UNGOOGLED_FINGERPRINTING_SWITCHES_H_
55+
56+#include "base/component_export.h"
57+
58+namespace switches {
59+
60+COMPONENT_EXPORT(UNGOOGLED) extern const char kFingerprintingClientRectsNoise[];
61+COMPONENT_EXPORT(UNGOOGLED) extern const char kFingerprintingCanvasMeasureTextNoise[];
62+COMPONENT_EXPORT(UNGOOGLED) extern const char kFingerprintingCanvasImageDataNoise[];
63+COMPONENT_EXPORT(UNGOOGLED) extern const char kPDFPluginName[];
64+
65+}
66+
67+#endif // THIRD_PARTY_UNGOOGLED_FINGERPRINTING_SWITCHES_H_