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

Unified Diff: android_webview/native/aw_web_resource_response_impl.cc

Issue 2258823002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « android_webview/native/aw_contents_client_bridge_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_web_resource_response_impl.cc
diff --git a/android_webview/native/aw_web_resource_response_impl.cc b/android_webview/native/aw_web_resource_response_impl.cc
index 1ea1411c3d422c1fcbf0c8964441aeba9768af4f..b659733346a9bc4b9591d1b81bdd4d24c44e646d 100644
--- a/android_webview/native/aw_web_resource_response_impl.cc
+++ b/android_webview/native/aw_web_resource_response_impl.cc
@@ -33,7 +33,7 @@ std::unique_ptr<InputStream> AwWebResourceResponseImpl::GetInputStream(
Java_AwWebResourceResponse_getData(env, java_object_);
if (jstream.is_null())
return std::unique_ptr<InputStream>();
- return base::WrapUnique(new InputStreamImpl(jstream));
+ return base::MakeUnique<InputStreamImpl>(jstream);
}
bool AwWebResourceResponseImpl::GetMimeType(JNIEnv* env,
« no previous file with comments | « android_webview/native/aw_contents_client_bridge_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698