Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Unified Diff: chrome/browser/metrics/variations/chrome_variations_service_client.cc

Issue 2889323004: Win 10 Inactive toast experiment metrics and storage modifications. (Closed)
Patch Set: Incorporate review comments Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/installer/util/BUILD.gn » ('j') | chrome/installer/util/experiment.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/variations/chrome_variations_service_client.cc
diff --git a/chrome/browser/metrics/variations/chrome_variations_service_client.cc b/chrome/browser/metrics/variations/chrome_variations_service_client.cc
index e4bfb1e89c3aedc9b374a40c625959247eec29a5..6291f8c40bb40bb44b3828a5e32c509015385a96 100644
--- a/chrome/browser/metrics/variations/chrome_variations_service_client.cc
+++ b/chrome/browser/metrics/variations/chrome_variations_service_client.cc
@@ -53,6 +53,11 @@ base::Version GetVersionForSimulation() {
void ClearGoogleUpdateRegistryLabels() {
base::ThreadRestrictions::AssertIOAllowed();
+ // There is nothing to do if this brand does not support integration with
+ // Google Update.
+ if (!install_static::kUseGoogleUpdateIntegration)
+ return;
+
// Note that all registry operations are done here on the UI thread as there
// are no threading restrictions on them.
const bool is_system_install = !InstallUtil::IsPerUserInstall();
« no previous file with comments | « no previous file | chrome/installer/util/BUILD.gn » ('j') | chrome/installer/util/experiment.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698