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

Unified Diff: headless/lib/browser/headless_browser_context.cc

Issue 1878153002: Revert of Simplify BrowserContext by removing redundant methods. (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
« no previous file with comments | « headless/lib/browser/headless_browser_context.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/lib/browser/headless_browser_context.cc
diff --git a/headless/lib/browser/headless_browser_context.cc b/headless/lib/browser/headless_browser_context.cc
index bf1dcb2c31013cb6d2223e384976268ea4b0e5d8..b48f09012e29ebb40e014fb72ea93dc311196b7b 100644
--- a/headless/lib/browser/headless_browser_context.cc
+++ b/headless/lib/browser/headless_browser_context.cc
@@ -93,24 +93,25 @@
return false;
}
+net::URLRequestContextGetter* HeadlessBrowserContext::GetRequestContext() {
+ return GetDefaultStoragePartition(this)->GetURLRequestContext();
+}
+
net::URLRequestContextGetter* HeadlessBrowserContext::GetMediaRequestContext() {
- return content::BrowserContext::GetDefaultStoragePartition(this)->
- GetURLRequestContext();
+ return GetRequestContext();
}
net::URLRequestContextGetter*
HeadlessBrowserContext::GetMediaRequestContextForRenderProcess(
int renderer_child_id) {
- return content::BrowserContext::GetDefaultStoragePartition(this)->
- GetURLRequestContext();
+ return GetRequestContext();
}
net::URLRequestContextGetter*
HeadlessBrowserContext::GetMediaRequestContextForStoragePartition(
const base::FilePath& partition_path,
bool in_memory) {
- return content::BrowserContext::GetDefaultStoragePartition(this)->
- GetURLRequestContext();
+ return GetRequestContext();
}
content::ResourceContext* HeadlessBrowserContext::GetResourceContext() {
« no previous file with comments | « headless/lib/browser/headless_browser_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698