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

Unified Diff: content/browser/renderer_host/delegated_frame_host.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/delegated_frame_host.cc
diff --git a/content/browser/renderer_host/delegated_frame_host.cc b/content/browser/renderer_host/delegated_frame_host.cc
index d569aa553819a2679198e16fb960977375b796b6..d58294eed603151b18c299457d40ab771a3bcf12 100644
--- a/content/browser/renderer_host/delegated_frame_host.cc
+++ b/content/browser/renderer_host/delegated_frame_host.cc
@@ -471,8 +471,7 @@ void DelegatedFrameHost::SwapDelegatedFrame(uint32_t output_surface_id,
ImageTransportFactory* factory = ImageTransportFactory::GetInstance();
cc::SurfaceManager* manager = factory->GetSurfaceManager();
if (!surface_factory_) {
- surface_factory_ =
- base::WrapUnique(new cc::SurfaceFactory(manager, this));
+ surface_factory_ = base::MakeUnique<cc::SurfaceFactory>(manager, this);
}
if (surface_id_.is_null() || frame_size != current_surface_size_ ||
frame_size_in_dip != current_frame_size_in_dip_) {
« no previous file with comments | « content/browser/plugin_private_storage_helper.cc ('k') | content/browser/renderer_host/input/synthetic_pointer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698