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

Unified Diff: chrome/browser/background_mode_manager_factory.cc

Issue 6879031: Add optional creation to ProfileKeyedServiceFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add docs for new parameter Created 9 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/background_mode_manager_factory.cc
diff --git a/chrome/browser/background_mode_manager_factory.cc b/chrome/browser/background_mode_manager_factory.cc
index 7c2870f525f48a774cd6267398d736da7994526a..9437f3b6ef94455677a8d83ccb769aad5328b89b 100644
--- a/chrome/browser/background_mode_manager_factory.cc
+++ b/chrome/browser/background_mode_manager_factory.cc
@@ -13,7 +13,7 @@
BackgroundModeManager* BackgroundModeManagerFactory::GetForProfile(
Profile* profile) {
return static_cast<BackgroundModeManager*>(
- GetInstance()->GetServiceForProfile(profile));
+ GetInstance()->GetServiceForProfile(profile, true));
}
// static

Powered by Google App Engine
This is Rietveld 408576698