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

Unified Diff: chrome/browser/browser_process_impl.cc

Issue 1765293002: Add support for Blimp engine metrics reporting in development. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update arg location so check only occurs if was declared. Created 4 years, 9 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
Index: chrome/browser/browser_process_impl.cc
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
index 12512d561f1b5fc69bb1e1c3f6d650502942e399..153684bf6e1bc3873a72a8a1f6f115454de4b78c 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -853,8 +853,14 @@ void BrowserProcessImpl::RegisterPrefs(PrefRegistrySimple* registry) {
registry->RegisterStringPref(prefs::kHardwareKeyboardLayout,
std::string());
#endif // defined(OS_CHROMEOS)
+
+#if defined(ENABLE_REPORTING_HEADLESS)
Alexei Svitkine (slow) 2016/03/07 20:38:25 Please add a comment about what this is and point
Jess 2016/03/07 21:09:21 Done. PTAL.
+ registry->RegisterBooleanPref(metrics::prefs::kMetricsReportingEnabled, true);
+#else
registry->RegisterBooleanPref(metrics::prefs::kMetricsReportingEnabled,
GoogleUpdateSettings::GetCollectStatsConsent());
+#endif // defined(ENABLE_REPORTING_HEADLESS)
+
#if BUILDFLAG(ANDROID_JAVA_UI)
registry->RegisterBooleanPref(
prefs::kCrashReportingEnabled, false);

Powered by Google App Engine
This is Rietveld 408576698