Index: chrome/browser/profiles/profile_impl.cc |
=================================================================== |
--- chrome/browser/profiles/profile_impl.cc (revision 85413) |
+++ chrome/browser/profiles/profile_impl.cc (working copy) |
@@ -17,7 +17,7 @@ |
#include "chrome/browser/autocomplete/autocomplete_classifier.h" |
#include "chrome/browser/autofill/personal_data_manager.h" |
#include "chrome/browser/background_contents_service_factory.h" |
-#include "chrome/browser/background_mode_manager_factory.h" |
+#include "chrome/browser/background_mode_manager.h" |
#include "chrome/browser/bookmarks/bookmark_model.h" |
#include "chrome/browser/browser_process.h" |
#include "chrome/browser/browser_signin.h" |
@@ -355,7 +355,9 @@ |
// ChromeOS because Chrome is always running (no need for special keep-alive |
// or launch-on-startup support). |
#if !defined(OS_CHROMEOS) |
- BackgroundModeManagerFactory::GetForProfile(this); |
+ BackgroundModeManager* background_mode_manager = |
+ BackgroundModeManager::GetInstance(); |
+ background_mode_manager->RegisterProfile(this); |
#endif |
BackgroundContentsServiceFactory::GetForProfile(this); |