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 |