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

Unified Diff: chrome/browser/search_engines/template_url_fetcher_factory.cc

Issue 13865012: Change GetProfileToUse method from Profile to content::BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile & deps 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/search_engines/template_url_fetcher_factory.cc
diff --git a/chrome/browser/search_engines/template_url_fetcher_factory.cc b/chrome/browser/search_engines/template_url_fetcher_factory.cc
index 4543a147b6113e58c772d338085d6a568cf82916..415106ffe0185fd9452a136743d3e0852c1b5df5 100644
--- a/chrome/browser/search_engines/template_url_fetcher_factory.cc
+++ b/chrome/browser/search_engines/template_url_fetcher_factory.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/search_engines/template_url_fetcher_factory.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/search_engines/template_url_fetcher.h"
@@ -42,6 +43,7 @@ ProfileKeyedService* TemplateURLFetcherFactory::BuildServiceInstanceFor(
return new TemplateURLFetcher(static_cast<Profile*>(profile));
}
-bool TemplateURLFetcherFactory::ServiceRedirectedInIncognito() const {
- return true;
+content::BrowserContext* TemplateURLFetcherFactory::GetBrowserContextToUse(
+ content::BrowserContext* context) const {
+ return chrome::GetBrowserContextRedirectedInIncognito(context);
}

Powered by Google App Engine
This is Rietveld 408576698