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

Unified Diff: content/public/test/test_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/public/test/test_browser_context.h ('k') | content/shell/browser/shell_access_token_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/test_browser_context.cc
diff --git a/content/public/test/test_browser_context.cc b/content/public/test/test_browser_context.cc
index 55c16461de96cf1651f45fdef825e953d5676bad..36d5263aa46f1ef76b8ef7ae94ba495081da8eba 100644
--- a/content/public/test/test_browser_context.cc
+++ b/content/public/test/test_browser_context.cc
@@ -66,6 +66,13 @@ void TestBrowserContext::SetPermissionManager(
permission_manager_ = std::move(permission_manager);
}
+net::URLRequestContextGetter* TestBrowserContext::GetRequestContext() {
+ if (!request_context_.get()) {
+ request_context_ = new TestContextURLRequestContextGetter();
+ }
+ return request_context_.get();
+}
+
base::FilePath TestBrowserContext::GetPath() const {
return browser_context_dir_.path();
}
@@ -83,13 +90,6 @@ DownloadManagerDelegate* TestBrowserContext::GetDownloadManagerDelegate() {
return NULL;
}
-net::URLRequestContextGetter* TestBrowserContext::GetRequestContext() {
- if (!request_context_.get()) {
- request_context_ = new TestContextURLRequestContextGetter();
- }
- return request_context_.get();
-}
-
net::URLRequestContextGetter* TestBrowserContext::GetMediaRequestContext() {
return NULL;
}
« no previous file with comments | « content/public/test/test_browser_context.h ('k') | content/shell/browser/shell_access_token_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698