-
Notifications
You must be signed in to change notification settings - Fork 0
/
0001-updater-disable-updater-pings.patch
68 lines (57 loc) · 2.75 KB
/
0001-updater-disable-updater-pings.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
From f047414e193907dbbafe66e0a81c01d04be92301 Mon Sep 17 00:00:00 2001
From: Jan Engelhardt <[email protected]>
Date: Tue, 2 Jun 2015 11:01:50 +0200
Subject: [PATCH] updater: disable updater pings
Despite auto-updater being arguably disabled (see previous commit),
Chromium would still send background requests. Kill it.
(trk:170, trk:171)
---
components/component_updater/component_updater_url_constants.cc | 2 +-
components/component_updater/configurator_impl.cc | 6 ++++--
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/components/component_updater/component_updater_url_constants.cc b/components/component_updater/component_updater_url_constants.cc
index 754f83394e15..b3ea2e5233dc 100644
--- a/components/component_updater/component_updater_url_constants.cc
+++ b/components/component_updater/component_updater_url_constants.cc
@@ -14,7 +14,7 @@ namespace component_updater {
//
// The value of |kDefaultUrlSource| can be overridden with
// --component-updater=url-source=someurl.
-const char kUpdaterDefaultUrl[] = "https://clients2.google.com/service/update2";
+const char kUpdaterDefaultUrl[] = "trk:171:https://clients2.google.com/service/update2";
const char kUpdaterFallbackUrl[] = "http://clients2.google.com/service/update2";
diff --git a/components/component_updater/configurator_impl.cc b/components/component_updater/configurator_impl.cc
index 07a0dcf9fc29..3c95ad041dd0 100644
--- a/components/component_updater/configurator_impl.cc
+++ b/components/component_updater/configurator_impl.cc
@@ -43,7 +43,9 @@ const char kSwitchRequestParam[] = "test-request";
// Disables pings. Pings are the requests sent to the update server that report
// the success or the failure of component install or update attempts.
+#if 0
const char kSwitchDisablePings[] = "disable-pings";
+#endif
// Sets the URL for updates.
const char kSwitchUrlSource[] = "url-source";
@@ -96,7 +98,6 @@ ConfiguratorImpl::ConfiguratorImpl(
cmdline->GetSwitchValueASCII(switches::kComponentUpdater), ",",
base::KEEP_WHITESPACE, base::SPLIT_WANT_NONEMPTY);
fast_update_ = base::ContainsValue(switch_values, kSwitchFastUpdate);
- pings_enabled_ = !base::ContainsValue(switch_values, kSwitchDisablePings);
deltas_enabled_ =
!base::ContainsValue(switch_values, kSwitchDisableDeltaUpdates);
@@ -143,6 +144,7 @@ std::vector<GURL> ConfiguratorImpl::UpdateUrl() const {
return urls;
}
+#if 0
if (base::FeatureList::IsEnabled(kAlternateComponentUrls)) {
urls.push_back(GURL(kUpdaterDefaultUrlAlt));
urls.push_back(GURL(kUpdaterFallbackUrlAlt));
@@ -153,7 +155,7 @@ std::vector<GURL> ConfiguratorImpl::UpdateUrl() const {
if (require_encryption_)
update_client::RemoveUnsecureUrls(&urls);
-
+#endif
return urls;
}
--
2.14.3