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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 6914021: Modifying the BackgroundModeManager to handle multiple profiles. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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/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);

Powered by Google App Engine
This is Rietveld 408576698