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

Unified Diff: chrome/browser/extensions/api/idle/idle_manager_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/api/idle/idle_manager_factory.cc
diff --git a/chrome/browser/extensions/api/idle/idle_manager_factory.cc b/chrome/browser/extensions/api/idle/idle_manager_factory.cc
index 47fec2b4db20e81543991450b16748c6cabe1f0e..68ed5331fe0b8062a0e8ce2641ec908cd31e86c9 100644
--- a/chrome/browser/extensions/api/idle/idle_manager_factory.cc
+++ b/chrome/browser/extensions/api/idle/idle_manager_factory.cc
@@ -6,6 +6,7 @@
#include "chrome/browser/extensions/api/idle/idle_manager.h"
#include "chrome/browser/extensions/extension_system_factory.h"
+#include "chrome/browser/profiles/incognito_helpers.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_dependency_manager.h"
@@ -39,8 +40,9 @@ ProfileKeyedService* IdleManagerFactory::BuildServiceInstanceFor(
return idle_manager;
}
-bool IdleManagerFactory::ServiceRedirectedInIncognito() const {
- return true;
+content::BrowserContext* IdleManagerFactory::GetBrowserContextToUse(
+ content::BrowserContext* context) const {
+ return chrome::GetBrowserContextRedirectedInIncognito(context);
}
bool IdleManagerFactory::ServiceIsCreatedWithProfile() const {
« no previous file with comments | « chrome/browser/extensions/api/idle/idle_manager_factory.h ('k') | chrome/browser/extensions/api/profile_keyed_api_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698