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

Unified Diff: content/shell/browser/shell_browser_context.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 | « content/shell/browser/shell_browser_context.h ('k') | content/shell/browser/shell_devtools_frontend.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/browser/shell_browser_context.cc
diff --git a/content/shell/browser/shell_browser_context.cc b/content/shell/browser/shell_browser_context.cc
index 505729904fe4a4020f52657698f0d3ad70376ef7..40b906a9ca13600fe2da599d38212c31ec8fb18d 100644
--- a/content/shell/browser/shell_browser_context.cc
+++ b/content/shell/browser/shell_browser_context.cc
@@ -125,10 +125,6 @@ DownloadManagerDelegate* ShellBrowserContext::GetDownloadManagerDelegate() {
return download_manager_delegate_.get();
}
-net::URLRequestContextGetter* ShellBrowserContext::GetRequestContext() {
- return GetDefaultStoragePartition(this)->GetURLRequestContext();
-}
-
ShellURLRequestContextGetter*
ShellBrowserContext::CreateURLRequestContextGetter(
ProtocolHandlerMap* protocol_handlers,
@@ -152,20 +148,23 @@ net::URLRequestContextGetter* ShellBrowserContext::CreateRequestContext(
net::URLRequestContextGetter*
ShellBrowserContext::GetMediaRequestContext() {
- return GetRequestContext();
+ return BrowserContext::GetDefaultStoragePartition(this)->
+ GetURLRequestContext();
}
net::URLRequestContextGetter*
ShellBrowserContext::GetMediaRequestContextForRenderProcess(
int renderer_child_id) {
- return GetRequestContext();
+ return BrowserContext::GetDefaultStoragePartition(this)->
+ GetURLRequestContext();
}
net::URLRequestContextGetter*
ShellBrowserContext::GetMediaRequestContextForStoragePartition(
const base::FilePath& partition_path,
bool in_memory) {
- return GetRequestContext();
+ return BrowserContext::GetDefaultStoragePartition(this)->
+ GetURLRequestContext();
}
net::URLRequestContextGetter*
« no previous file with comments | « content/shell/browser/shell_browser_context.h ('k') | content/shell/browser/shell_devtools_frontend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698