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

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

Issue 13865012: Change GetProfileToUse method from Profile to content::BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots 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/install_tracker_factory.cc
diff --git a/chrome/browser/extensions/install_tracker_factory.cc b/chrome/browser/extensions/install_tracker_factory.cc
index 820404aac3fe89966c3d277dd7bcb12d4f1a3785..f84d75681c51e2fedc541e65756b4456708a0c4b 100644
--- a/chrome/browser/extensions/install_tracker_factory.cc
+++ b/chrome/browser/extensions/install_tracker_factory.cc
@@ -9,6 +9,7 @@
#include "chrome/browser/extensions/extension_system.h"
#include "chrome/browser/extensions/extension_system_factory.h"
#include "chrome/browser/extensions/install_tracker.h"
+#include "chrome/browser/profiles/incognito_helpers.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_dependency_manager.h"
@@ -41,10 +42,11 @@ ProfileKeyedService* InstallTrackerFactory::BuildServiceInstanceFor(
return new InstallTracker(profile, service->extension_prefs());
}
-bool InstallTrackerFactory::ServiceRedirectedInIncognito() const {
+content::BrowserContext* InstallTrackerFactory::GetBrowserContextToUse(
+ content::BrowserContext* context) const {
// The installs themselves are routed to the non-incognito profile and so
// should the install progress.
- return true;
+ return chrome::GetBrowserContextRedirectedInIncognito(context);
}
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698