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

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

Issue 1864583006: Simplify BrowserContext by removing redundant methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 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
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/spellchecker/spellcheck_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0d933859a37840f7c0c867bbaaab0a26c1aeb940..0a05834996e7cff5dc6dbffcfd022902c6ab7769 100644
--- a/chrome/browser/search_engines/template_url_fetcher_factory.cc
+++ b/chrome/browser/search_engines/template_url_fetcher_factory.cc
@@ -9,6 +9,7 @@
#include "chrome/browser/search_engines/template_url_service_factory.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
#include "components/search_engines/template_url_fetcher.h"
+#include "content/public/browser/storage_partition.h"
// static
TemplateURLFetcher* TemplateURLFetcherFactory::GetForProfile(
@@ -43,7 +44,8 @@ KeyedService* TemplateURLFetcherFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
return new TemplateURLFetcher(
TemplateURLServiceFactory::GetForProfile(static_cast<Profile*>(profile)),
- profile->GetRequestContext());
+ content::BrowserContext::GetDefaultStoragePartition(profile)->
+ GetURLRequestContext());
}
content::BrowserContext* TemplateURLFetcherFactory::GetBrowserContextToUse(
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/spellchecker/spellcheck_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698