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

Unified Diff: headless/lib/browser/headless_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 | « 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 b48f09012e29ebb40e014fb72ea93dc311196b7b..bf1dcb2c31013cb6d2223e384976268ea4b0e5d8 100644
--- a/headless/lib/browser/headless_browser_context.cc
+++ b/headless/lib/browser/headless_browser_context.cc
@@ -93,25 +93,24 @@ bool HeadlessBrowserContext::IsOffTheRecord() const {
return false;
}
-net::URLRequestContextGetter* HeadlessBrowserContext::GetRequestContext() {
- return GetDefaultStoragePartition(this)->GetURLRequestContext();
-}
-
net::URLRequestContextGetter* HeadlessBrowserContext::GetMediaRequestContext() {
- return GetRequestContext();
+ return content::BrowserContext::GetDefaultStoragePartition(this)->
+ GetURLRequestContext();
}
net::URLRequestContextGetter*
HeadlessBrowserContext::GetMediaRequestContextForRenderProcess(
int renderer_child_id) {
- return GetRequestContext();
+ return content::BrowserContext::GetDefaultStoragePartition(this)->
+ GetURLRequestContext();
}
net::URLRequestContextGetter*
HeadlessBrowserContext::GetMediaRequestContextForStoragePartition(
const base::FilePath& partition_path,
bool in_memory) {
- return GetRequestContext();
+ return content::BrowserContext::GetDefaultStoragePartition(this)->
+ GetURLRequestContext();
}
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