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

Unified Diff: content/browser/fileapi/blob_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
Index: content/browser/fileapi/blob_url_request_job_unittest.cc
diff --git a/content/browser/fileapi/blob_url_request_job_unittest.cc b/content/browser/fileapi/blob_url_request_job_unittest.cc
index 17526b85b6a65c5f38979e5340a680e0d07638a3..9debd4dc6715caf70b602336f2a6d713a3734665 100644
--- a/content/browser/fileapi/blob_url_request_job_unittest.cc
+++ b/content/browser/fileapi/blob_url_request_job_unittest.cc
@@ -150,8 +150,8 @@ class BlobURLRequestJobTest : public testing::Test {
disk_cache_entry_ = CreateDiskCacheEntry(
disk_cache_backend_.get(), kTestDiskCacheKey, kTestDiskCacheData);
- url_request_job_factory_.SetProtocolHandler("blob",
- new MockProtocolHandler(this));
+ url_request_job_factory_.SetProtocolHandler(
+ "blob", make_scoped_ptr(new MockProtocolHandler(this)));
url_request_context_.set_job_factory(&url_request_job_factory_);
}

Powered by Google App Engine
This is Rietveld 408576698