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

Unified Diff: content/browser/android/content_protocol_handler_impl.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/android/content_protocol_handler_impl.cc
diff --git a/content/browser/android/content_protocol_handler_impl.cc b/content/browser/android/content_protocol_handler_impl.cc
index f5e5d208f8f55f0913b95aed48bb4b277675463c..8f8b13a435d412b97cb88436bf21a1a62dd84209 100644
--- a/content/browser/android/content_protocol_handler_impl.cc
+++ b/content/browser/android/content_protocol_handler_impl.cc
@@ -13,9 +13,9 @@
namespace content {
// static
-ContentProtocolHandler* ContentProtocolHandler::Create(
+scoped_ptr<ContentProtocolHandler> ContentProtocolHandler::Create(
const scoped_refptr<base::TaskRunner>& content_task_runner) {
- return new ContentProtocolHandlerImpl(content_task_runner);
+ return make_scoped_ptr(new ContentProtocolHandlerImpl(content_task_runner));
}
ContentProtocolHandlerImpl::ContentProtocolHandlerImpl(

Powered by Google App Engine
This is Rietveld 408576698