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

Unified Diff: android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc

Issue 1295523006: Using scoped_ptr for URLRequestJobFactoryImpl::SetProtocolHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing un-modified file Created 5 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
« no previous file with comments | « no previous file | android_webview/browser/net/aw_url_request_context_getter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc
diff --git a/android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc b/android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc
index c7e3c688782a81ac6dfbe2334cc07def04d978e2..651d01d1e924529026426ca53718a3ec3fe93dba 100644
--- a/android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc
+++ b/android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc
@@ -218,12 +218,14 @@ class AndroidStreamReaderURLRequestJobTest : public Test {
// The Interceptor is owned by the |factory_|.
TestJobInterceptor* protocol_handler = new TestJobInterceptor;
protocol_handler->set_main_intercept_job(test_stream_reader_job);
- bool set_protocol = factory_.SetProtocolHandler("http", protocol_handler);
+ bool set_protocol =
+ factory_.SetProtocolHandler("http", make_scoped_ptr(protocol_handler));
DCHECK(set_protocol);
protocol_handler = new TestJobInterceptor;
protocol_handler->set_main_intercept_job(test_stream_reader_job);
- set_protocol = factory_.SetProtocolHandler("content", protocol_handler);
+ set_protocol = factory_.SetProtocolHandler(
+ "content", make_scoped_ptr(protocol_handler));
DCHECK(set_protocol);
}
« no previous file with comments | « no previous file | android_webview/browser/net/aw_url_request_context_getter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698