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

Unified Diff: content/renderer/render_view_impl.cc

Issue 2253053003: 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 | « content/renderer/render_thread_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 6065345b4a9009b0f69df1a18fd45243e237f05d..21a9c7a80411034acc18af903de756864313c5c6 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -800,14 +800,14 @@ void RenderViewImpl::Initialize(const ViewMsg_New_Params& params,
main_render_frame_->Initialize();
#if defined(OS_ANDROID)
- content_detectors_.push_back(base::WrapUnique(new AddressDetector()));
+ content_detectors_.push_back(base::MakeUnique<AddressDetector>());
const std::string& contry_iso =
params.renderer_preferences.network_contry_iso;
if (!contry_iso.empty()) {
content_detectors_.push_back(
- base::WrapUnique(new PhoneNumberDetector(contry_iso)));
+ base::MakeUnique<PhoneNumberDetector>(contry_iso));
}
- content_detectors_.push_back(base::WrapUnique(new EmailDetector()));
+ content_detectors_.push_back(base::MakeUnique<EmailDetector>());
#endif
// If this is a popup, we must wait for the CreatingNew_ACK message before
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698