Index: chrome/browser/background/background_contents_service_factory.cc |
diff --git a/chrome/browser/background/background_contents_service_factory.cc b/chrome/browser/background/background_contents_service_factory.cc |
index a47b4b471f5f464c9bbf04c4c0c20f364e8ce6c6..8d7b284ff8dc5694bcb884e8a4d035cb6584ce3c 100644 |
--- a/chrome/browser/background/background_contents_service_factory.cc |
+++ b/chrome/browser/background/background_contents_service_factory.cc |
@@ -7,6 +7,7 @@ |
#include "base/command_line.h" |
#include "base/prefs/pref_service.h" |
#include "chrome/browser/background/background_contents_service.h" |
+#include "chrome/browser/profiles/incognito_helpers.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/profiles/profile_dependency_manager.h" |
#include "chrome/common/pref_names.h" |
@@ -45,9 +46,10 @@ void BackgroundContentsServiceFactory::RegisterUserPrefs( |
PrefRegistrySyncable::UNSYNCABLE_PREF); |
} |
-bool |
-BackgroundContentsServiceFactory::ServiceHasOwnInstanceInIncognito() const { |
- return true; |
+content::BrowserContext* |
+BackgroundContentsServiceFactory::GetBrowserContextToUse( |
+ content::BrowserContext* context) const { |
+ return chrome::GetBrowserContextOwnInstanceInIncognito(context); |
} |
bool BackgroundContentsServiceFactory::ServiceIsCreatedWithProfile() const { |