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

Unified Diff: chrome/browser/ui/webui/options/clear_browser_data_handler.cc

Issue 1432563002: Enable 'Browsing data volume counters on Desktop' by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed histograms.xml. Created 5 years, 1 month 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/ui/webui/options/clear_browser_data_handler.cc
diff --git a/chrome/browser/ui/webui/options/clear_browser_data_handler.cc b/chrome/browser/ui/webui/options/clear_browser_data_handler.cc
index 2c2dac59712734c3804d3209018e84901bb6efc4..9011ca9058a8c5e1d8d85d957b35d082189fad11 100644
--- a/chrome/browser/ui/webui/options/clear_browser_data_handler.cc
+++ b/chrome/browser/ui/webui/options/clear_browser_data_handler.cc
@@ -42,8 +42,18 @@ const char kClearBrowsingDataLearnMoreUrl[] =
"https://support.google.com/chrome/?p=settings_clear_browsing_data";
bool AreCountersEnabled() {
- return base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableClearBrowsingDataCounters);
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableClearBrowsingDataCounters)) {
+ return true;
+ }
+
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableClearBrowsingDataCounters)) {
+ return false;
+ }
+
+ // Enabled by default.
+ return true;
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698