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

Unified Diff: content/public/test/browser_test_utils.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 | « content/public/browser/browser_context.h ('k') | content/public/test/test_browser_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/browser_test_utils.cc
diff --git a/content/public/test/browser_test_utils.cc b/content/public/test/browser_test_utils.cc
index 72748e75eb6f54d24e0cb8e666c280c6dbb46f7d..721e0d1a19c24eb6e8a79a03c3ea99a9b287bca9 100644
--- a/content/public/test/browser_test_utils.cc
+++ b/content/public/test/browser_test_utils.cc
@@ -39,7 +39,6 @@
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_view_host.h"
-#include "content/public/browser/storage_partition.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/test_navigation_observer.h"
#include "content/public/test/test_utils.h"
@@ -782,8 +781,7 @@
std::string cookies;
base::WaitableEvent event(true, false);
net::URLRequestContextGetter* context_getter =
- BrowserContext::GetDefaultStoragePartition(browser_context)->
- GetURLRequestContext();
+ browser_context->GetRequestContext();
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
@@ -799,8 +797,7 @@
bool result = false;
base::WaitableEvent event(true, false);
net::URLRequestContextGetter* context_getter =
- BrowserContext::GetDefaultStoragePartition(browser_context)->
- GetURLRequestContext();
+ browser_context->GetRequestContext();
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
« no previous file with comments | « content/public/browser/browser_context.h ('k') | content/public/test/test_browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698