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

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: 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: 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..389d5438315851ab187a2fc51bdde318c4694ca3 100644
--- a/android_webview/browser/net/aw_url_request_job_factory.cc
+++ b/android_webview/browser/net/aw_url_request_job_factory.cc
@@ -73,8 +73,8 @@ net::URLRequestJob* AwURLRequestJobFactory::MaybeInterceptResponse(
bool AwURLRequestJobFactory::SetProtocolHandler(
const std::string& scheme,
- ProtocolHandler* protocol_handler) {
- return next_factory_->SetProtocolHandler(scheme, protocol_handler);
+ scoped_ptr<ProtocolHandler> protocol_handler) {
+ return next_factory_->SetProtocolHandler(scheme, protocol_handler.Pass());
}
bool AwURLRequestJobFactory::IsSafeRedirectTarget(const GURL& location) const {

Powered by Google App Engine
This is Rietveld 408576698