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

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

Issue 1295523006: Using scoped_ptr for URLRequestJobFactoryImpl::SetProtocolHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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: android_webview/browser/net/aw_url_request_job_factory.cc
diff --git a/android_webview/browser/net/aw_url_request_job_factory.cc b/android_webview/browser/net/aw_url_request_job_factory.cc
index 984458cd80285652a8267b70abe56d617d9b14aa..d0c64a16c16380b35c281997a08fa0e28c58c1a5 100644
--- a/android_webview/browser/net/aw_url_request_job_factory.cc
+++ b/android_webview/browser/net/aw_url_request_job_factory.cc
@@ -74,7 +74,8 @@ net::URLRequestJob* AwURLRequestJobFactory::MaybeInterceptResponse(
bool AwURLRequestJobFactory::SetProtocolHandler(
const std::string& scheme,
ProtocolHandler* protocol_handler) {
- return next_factory_->SetProtocolHandler(scheme, protocol_handler);
+ return next_factory_->SetProtocolHandler(scheme,
+ make_scoped_ptr(protocol_handler));
}
bool AwURLRequestJobFactory::IsSafeRedirectTarget(const GURL& location) const {

Powered by Google App Engine
This is Rietveld 408576698