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

Unified Diff: chrome/browser/chromeos/chrome_browser_main_chromeos.cc

Issue 12334096: Regularize ownerships and lifecycle for storage monitor platform classes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Document lifecycle in storage_monitor.h Created 7 years, 10 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/chromeos/chrome_browser_main_chromeos.cc
diff --git a/chrome/browser/chromeos/chrome_browser_main_chromeos.cc b/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
index c768ca57be3b83b79ee3ed09b1bdf10c5bb2157e..08612591e46d545a130578927a69f453a8fca657 100644
--- a/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
+++ b/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
@@ -529,6 +529,9 @@ void ChromeBrowserMainPartsChromeos::PreProfileInit() {
&tracker_);
#endif
+ removable_device_notifications_ =
+ new RemovableDeviceNotificationsCros();
+
// In Aura builds this will initialize ash::Shell.
ChromeBrowserMainPartsLinux::PreProfileInit();
}
@@ -596,8 +599,7 @@ void ChromeBrowserMainPartsChromeos::PostProfileInit() {
}
chromeos::accessibility::Initialize();
- removable_device_notifications_ =
- new RemovableDeviceNotificationsCros();
+ removable_device_notifications_->Init();
// Initialize the network portal detector for Chrome OS. The network
// portal detector starts to listen for notifications from

Powered by Google App Engine
This is Rietveld 408576698