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

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

Issue 1342093003: Decouple the browsing data counters initialization and start. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added Restart() to tests as well. Created 5 years, 3 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 | « chrome/browser/browsing_data/passwords_counter_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c8800ca55ddf861c2657b9c62d0571bcd9e615a7..d73ffadc39ecc84b48b4990bf5f6e9bfb42af0b3 100644
--- a/chrome/browser/ui/webui/options/clear_browser_data_handler.cc
+++ b/chrome/browser/ui/webui/options/clear_browser_data_handler.cc
@@ -80,6 +80,10 @@ void ClearBrowserDataHandler::InitializePage() {
web_ui()->CallJavascriptFunction("ClearBrowserDataOverlay.setClearing",
base::FundamentalValue(removal_in_progress));
+ for (BrowsingDataCounter* counter : counters_) {
+ DCHECK(AreCountersEnabled());
+ counter->Restart();
+ }
web_ui()->CallJavascriptFunction(
"ClearBrowserDataOverlay.markInitializationComplete");
}
« no previous file with comments | « chrome/browser/browsing_data/passwords_counter_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698