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

Unified Diff: blimp/engine/common/blimp_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
Index: blimp/engine/common/blimp_browser_context.cc
diff --git a/blimp/engine/common/blimp_browser_context.cc b/blimp/engine/common/blimp_browser_context.cc
index 614bd494e253a59addf58722729a7856cf213293..8e8baa81d41255ff0084aa1a908cf26dccf3fa65 100644
--- a/blimp/engine/common/blimp_browser_context.cc
+++ b/blimp/engine/common/blimp_browser_context.cc
@@ -105,25 +105,21 @@ BlimpBrowserContext::GetSystemRequestContextGetter() {
return system_context_getter_.get();
}
-net::URLRequestContextGetter* BlimpBrowserContext::GetRequestContext() {
- return GetDefaultStoragePartition(this)->GetURLRequestContext();
-}
-
net::URLRequestContextGetter* BlimpBrowserContext::GetMediaRequestContext() {
- return GetRequestContext();
+ return resource_context_->url_request_context_getter().get();
}
net::URLRequestContextGetter*
BlimpBrowserContext::GetMediaRequestContextForRenderProcess(
int renderer_child_id) {
- return GetRequestContext();
+ return resource_context_->url_request_context_getter().get();
}
net::URLRequestContextGetter*
BlimpBrowserContext::GetMediaRequestContextForStoragePartition(
const base::FilePath& partition_path,
bool in_memory) {
- return GetRequestContext();
+ return resource_context_->url_request_context_getter().get();
}
content::ResourceContext* BlimpBrowserContext::GetResourceContext() {
« no previous file with comments | « blimp/engine/common/blimp_browser_context.h ('k') | chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698