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

Unified Diff: chrome/browser/chrome_browser_main_win.cc

Issue 12647013: Regularize storage monitor creation in Windows. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 7 years, 8 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/chrome_browser_main_win.cc
diff --git a/chrome/browser/chrome_browser_main_win.cc b/chrome/browser/chrome_browser_main_win.cc
index 083c59dd4717e1a5230b631aaef0abec7d445486..e8cd5933c25a34dddd77357d4cf58d020d78555a 100644
--- a/chrome/browser/chrome_browser_main_win.cc
+++ b/chrome/browser/chrome_browser_main_win.cc
@@ -199,7 +199,6 @@ void ChromeBrowserMainPartsWin::PreMainMessageLoopStart() {
// Make sure that we know how to handle exceptions from the message loop.
InitializeWindowProcExceptions();
}
- storage_monitor_.reset(chrome::StorageMonitorWin::Create());
}
void ChromeBrowserMainPartsWin::PostMainMessageLoopStart() {
@@ -217,10 +216,16 @@ void ChromeBrowserMainPartsWin::PostMainMessageLoopStart() {
}
}
-void ChromeBrowserMainPartsWin::PreMainMessageLoopRun() {
- ChromeBrowserMainParts::PreMainMessageLoopRun();
+void ChromeBrowserMainPartsWin::PreProfileInit() {
+ storage_monitor_.reset(chrome::StorageMonitorWin::Create());
+ ChromeBrowserMainParts::PreProfileInit();
+}
+
+void ChromeBrowserMainPartsWin::PostProfileInit() {
storage_monitor_->Init();
+
+ ChromeBrowserMainParts::PostProfileInit();
}
void ChromeBrowserMainPartsWin::ShowMissingLocaleMessageBox() {

Powered by Google App Engine
This is Rietveld 408576698