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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 1862203005: Remove ContentBrowserClient::CreateRequestContext & CreateRequestContextForStoragePartition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 5569ad707130859af0d57d6e5a42e3765087aae6..022ab422515acdb95167eaec34c391258968ff08 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -913,15 +913,6 @@ PrefService* ProfileImpl::GetOffTheRecordPrefs() {
return otr_prefs_.get();
}
-net::URLRequestContextGetter* ProfileImpl::CreateRequestContext(
- content::ProtocolHandlerMap* protocol_handlers,
- content::URLRequestInterceptorScopedVector request_interceptors) {
- return io_data_.CreateMainRequestContextGetter(
- protocol_handlers, std::move(request_interceptors),
- g_browser_process->io_thread())
- .get();
-}
-
net::URLRequestContextGetter* ProfileImpl::GetRequestContext() {
return GetDefaultStoragePartition(this)->GetURLRequestContext();
}
@@ -957,18 +948,6 @@ net::URLRequestContextGetter* ProfileImpl::GetRequestContextForExtensions() {
return io_data_.GetExtensionsRequestContextGetter().get();
}
-net::URLRequestContextGetter*
-ProfileImpl::CreateRequestContextForStoragePartition(
- const base::FilePath& partition_path,
- bool in_memory,
- content::ProtocolHandlerMap* protocol_handlers,
- content::URLRequestInterceptorScopedVector request_interceptors) {
- return io_data_.CreateIsolatedAppRequestContextGetter(
- partition_path, in_memory, protocol_handlers,
- std::move(request_interceptors))
- .get();
-}
-
net::SSLConfigService* ProfileImpl::GetSSLConfigService() {
// If ssl_config_service_manager_ is null, this typically means that some
// KeyedService is trying to create a RequestContext at startup,
@@ -1019,6 +998,27 @@ content::BackgroundSyncController* ProfileImpl::GetBackgroundSyncController() {
return BackgroundSyncControllerFactory::GetForProfile(this);
}
+net::URLRequestContextGetter* ProfileImpl::CreateRequestContext(
+ content::ProtocolHandlerMap* protocol_handlers,
+ content::URLRequestInterceptorScopedVector request_interceptors) {
+ return io_data_.CreateMainRequestContextGetter(
+ protocol_handlers, std::move(request_interceptors),
+ g_browser_process->io_thread())
+ .get();
+}
+
+net::URLRequestContextGetter*
+ProfileImpl::CreateRequestContextForStoragePartition(
+ const base::FilePath& partition_path,
+ bool in_memory,
+ content::ProtocolHandlerMap* protocol_handlers,
+ content::URLRequestInterceptorScopedVector request_interceptors) {
+ return io_data_.CreateIsolatedAppRequestContextGetter(
+ partition_path, in_memory, protocol_handlers,
+ std::move(request_interceptors))
+ .get();
+}
+
bool ProfileImpl::IsSameProfile(Profile* profile) {
if (profile == static_cast<Profile*>(this))
return true;

Powered by Google App Engine
This is Rietveld 408576698