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

Unified Diff: trunk/src/content/public/test/mock_resource_context.cc

Issue 23551005: Revert 219709 "Remove the Extensions URLRequestContext." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 4 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: trunk/src/content/public/test/mock_resource_context.cc
===================================================================
--- trunk/src/content/public/test/mock_resource_context.cc (revision 219785)
+++ trunk/src/content/public/test/mock_resource_context.cc (working copy)
@@ -9,12 +9,12 @@
namespace content {
MockResourceContext::MockResourceContext()
- : request_context_(NULL) {
+ : test_request_context_(NULL) {
}
MockResourceContext::MockResourceContext(
- net::URLRequestContext* request_context)
- : request_context_(request_context),
+ net::URLRequestContext* test_request_context)
+ : test_request_context_(test_request_context),
mic_allowed_(false),
camera_allowed_(false) {
}
@@ -26,8 +26,8 @@
}
net::URLRequestContext* MockResourceContext::GetRequestContext() {
- CHECK(request_context_);
- return request_context_;
+ CHECK(test_request_context_);
+ return test_request_context_;
}
bool MockResourceContext::AllowMicAccess(const GURL& origin) {
« no previous file with comments | « trunk/src/content/public/test/mock_resource_context.h ('k') | trunk/src/content/public/test/test_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698