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

Unified Diff: chrome_frame/test/net/test_automation_provider.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
Index: chrome_frame/test/net/test_automation_provider.cc
diff --git a/chrome_frame/test/net/test_automation_provider.cc b/chrome_frame/test/net/test_automation_provider.cc
index 446e041d8b5aae0d4c249075f83635ae1d5f3058..05c384557e30e1d1c028f423ae0ecbd4e79866bc 100644
--- a/chrome_frame/test/net/test_automation_provider.cc
+++ b/chrome_frame/test/net/test_automation_provider.cc
@@ -35,10 +35,10 @@ TestAutomationProvider::TestAutomationProvider(
// ensure that we don't inadvarently end up handling http requests which
// we don't expect. The initial chrome frame page for the network tests
// issues http requests which our test factory should not handle.
- net::URLRequest::RegisterProtocolFactory("http",
- TestAutomationProvider::Factory);
- net::URLRequest::RegisterProtocolFactory("https",
- TestAutomationProvider::Factory);
+ net::URLRequest::Deprecated::RegisterProtocolFactory(
+ "http", TestAutomationProvider::Factory);
+ net::URLRequest::Deprecated::RegisterProtocolFactory(
+ "https", TestAutomationProvider::Factory);
automation_resource_message_filter_ =
new TestAutomationResourceMessageFilter(this);
g_provider_instance_ = this;

Powered by Google App Engine
This is Rietveld 408576698