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

Unified Diff: content/browser/renderer_host/render_view_host_factory.cc

Issue 2256173002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace a WrapUnique() nested inside a MakeUnique() Created 4 years, 3 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/renderer_host/render_view_host_factory.cc
diff --git a/content/browser/renderer_host/render_view_host_factory.cc b/content/browser/renderer_host/render_view_host_factory.cc
index 73b816ded11538cf423c211c876b4061608f8cd3..8804439968dfb4bff6b12cdc526f6d309d4839d6 100644
--- a/content/browser/renderer_host/render_view_host_factory.cc
+++ b/content/browser/renderer_host/render_view_host_factory.cc
@@ -50,8 +50,8 @@ RenderViewHost* RenderViewHostFactory::Create(
}
return new RenderViewHostImpl(
instance,
- base::WrapUnique(new RenderWidgetHostImpl(
- widget_delegate, instance->GetProcess(), routing_id, hidden)),
+ base::MakeUnique<RenderWidgetHostImpl>(
+ widget_delegate, instance->GetProcess(), routing_id, hidden),
delegate, main_frame_routing_id, swapped_out,
true /* has_initialized_audio_host */);
}

Powered by Google App Engine
This is Rietveld 408576698