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

Unified Diff: content/browser/renderer_host/resource_dispatcher_host_unittest.cc

Issue 7397008: Deprecate RegisterProtocolFactory/(Un)RegisterInterceptor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix indent. Created 9 years, 5 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/browser/child_process_security_policy_unittest.cc ('k') | net/url_request/url_request.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/resource_dispatcher_host_unittest.cc
diff --git a/content/browser/renderer_host/resource_dispatcher_host_unittest.cc b/content/browser/renderer_host/resource_dispatcher_host_unittest.cc
index 735116c514f870268fb5b90ddbe9d3fd5e100dcb..bee752d74902c58b5923c76fee2a47681b68f799 100644
--- a/content/browser/renderer_host/resource_dispatcher_host_unittest.cc
+++ b/content/browser/renderer_host/resource_dispatcher_host_unittest.cc
@@ -273,7 +273,7 @@ class ResourceDispatcherHostTest : public testing::Test,
DCHECK(!test_fixture_);
test_fixture_ = this;
ChildProcessSecurityPolicy::GetInstance()->Add(0);
- net::URLRequest::RegisterProtocolFactory(
+ net::URLRequest::Deprecated::RegisterProtocolFactory(
"test",
&ResourceDispatcherHostTest::Factory);
EnsureTestSchemeIsAllowed();
@@ -281,9 +281,10 @@ class ResourceDispatcherHostTest : public testing::Test,
}
virtual void TearDown() {
- net::URLRequest::RegisterProtocolFactory("test", NULL);
+ net::URLRequest::Deprecated::RegisterProtocolFactory("test", NULL);
if (!scheme_.empty())
- net::URLRequest::RegisterProtocolFactory(scheme_, old_factory_);
+ net::URLRequest::Deprecated::RegisterProtocolFactory(
+ scheme_, old_factory_);
EXPECT_TRUE(URLRequestTestDelayedStartJob::DelayedStartQueueEmpty());
URLRequestTestDelayedStartJob::ClearQueue();
@@ -346,7 +347,7 @@ class ResourceDispatcherHostTest : public testing::Test,
DCHECK(scheme_.empty());
DCHECK(!old_factory_);
scheme_ = scheme;
- old_factory_ = net::URLRequest::RegisterProtocolFactory(
+ old_factory_ = net::URLRequest::Deprecated::RegisterProtocolFactory(
scheme_, &ResourceDispatcherHostTest::Factory);
}
« no previous file with comments | « content/browser/child_process_security_policy_unittest.cc ('k') | net/url_request/url_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698