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

Unified Diff: chrome/browser/extensions/extension_system_factory.cc

Issue 13865012: Change GetProfileToUse method from Profile to content::BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/extensions/extension_system_factory.cc
diff --git a/chrome/browser/extensions/extension_system_factory.cc b/chrome/browser/extensions/extension_system_factory.cc
index 781678e1d83e2bed5a8167f199c065abc2f80369..a64ba8abe2d24673f065bb1fe1f74498cc0476ae 100644
--- a/chrome/browser/extensions/extension_system_factory.cc
+++ b/chrome/browser/extensions/extension_system_factory.cc
@@ -7,6 +7,7 @@
#include "chrome/browser/extensions/extension_prefs.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/extension_system.h"
+#include "chrome/browser/profiles/incognito_helpers.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_dependency_manager.h"
#include "chrome/browser/themes/theme_service_factory.h"
@@ -46,8 +47,9 @@ ProfileKeyedService* ExtensionSystemSharedFactory::BuildServiceInstanceFor(
return new ExtensionSystemImpl::Shared(static_cast<Profile*>(profile));
}
-bool ExtensionSystemSharedFactory::ServiceRedirectedInIncognito() const {
- return true;
+content::BrowserContext* ExtensionSystemSharedFactory::GetBrowserContextToUse(
+ content::BrowserContext* context) const {
+ return chrome::GetBrowserContextRedirectedInIncognito(context);
}
// ExtensionSystemFactory
@@ -78,8 +80,9 @@ ProfileKeyedService* ExtensionSystemFactory::BuildServiceInstanceFor(
return new ExtensionSystemImpl(static_cast<Profile*>(profile));
}
-bool ExtensionSystemFactory::ServiceHasOwnInstanceInIncognito() const {
- return true;
+content::BrowserContext* ExtensionSystemSharedFactory::GetBrowserContextToUse(
Jói 2013/05/02 17:10:52 ExtensionSystemSharedFactory -> ExtensionSystemFac
Paweł Hajdan Jr. 2013/05/03 17:34:41 Done.
+ content::BrowserContext* context) const {
+ return chrome::GetBrowserContextOwnInstanceInIncognito(context);
}
bool ExtensionSystemFactory::ServiceIsCreatedWithProfile() const {

Powered by Google App Engine
This is Rietveld 408576698