Index: chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc |
diff --git a/chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc b/chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc |
index b87384d5e88ea574f69258a0ab683c8d8de4c990..5b5d8082c608fb5939b28b32141dac43048297d5 100644 |
--- a/chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc |
+++ b/chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc |
@@ -36,10 +36,11 @@ void AssertInterceptedIO( |
net::URLRequestJobFactory* interceptor) { |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
net::URLRequestContext context; |
- net::URLRequest request(url, net::DEFAULT_PRIORITY, NULL, &context); |
+ scoped_ptr<net::URLRequest> request(context.CreateRequest( |
+ url, net::DEFAULT_PRIORITY, NULL, NULL)); |
scoped_refptr<net::URLRequestJob> job = |
interceptor->MaybeCreateJobWithProtocolHandler( |
- url.scheme(), &request, context.network_delegate()); |
+ url.scheme(), request.get(), context.network_delegate()); |
ASSERT_TRUE(job.get() != NULL); |
} |