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

Unified Diff: blimp/engine/common/blimp_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
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 8e8baa81d41255ff0084aa1a908cf26dccf3fa65..614bd494e253a59addf58722729a7856cf213293 100644
--- a/blimp/engine/common/blimp_browser_context.cc
+++ b/blimp/engine/common/blimp_browser_context.cc
@@ -105,21 +105,25 @@
return system_context_getter_.get();
}
+net::URLRequestContextGetter* BlimpBrowserContext::GetRequestContext() {
+ return GetDefaultStoragePartition(this)->GetURLRequestContext();
+}
+
net::URLRequestContextGetter* BlimpBrowserContext::GetMediaRequestContext() {
- return resource_context_->url_request_context_getter().get();
+ return GetRequestContext();
}
net::URLRequestContextGetter*
BlimpBrowserContext::GetMediaRequestContextForRenderProcess(
int renderer_child_id) {
- return resource_context_->url_request_context_getter().get();
+ return GetRequestContext();
}
net::URLRequestContextGetter*
BlimpBrowserContext::GetMediaRequestContextForStoragePartition(
const base::FilePath& partition_path,
bool in_memory) {
- return resource_context_->url_request_context_getter().get();
+ return GetRequestContext();
}
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