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

Unified Diff: content/renderer/render_frame_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
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index cb9e3d3faa5df2dc38de129057f07c3d243797bb..23f49a902c4569dcd01b0b2cfc0b1e5bfdfd5321 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -1220,7 +1220,7 @@ void RenderFrameImpl::Initialize() {
void RenderFrameImpl::InitializeBlameContext(RenderFrameImpl* parent_frame) {
DCHECK(!blame_context_);
- blame_context_ = base::WrapUnique(new FrameBlameContext(this, parent_frame));
+ blame_context_ = base::MakeUnique<FrameBlameContext>(this, parent_frame);
blame_context_->Initialize();
}
@@ -2269,7 +2269,7 @@ bool RenderFrameImpl::ScheduleFileChooser(
}
file_chooser_completions_.push_back(
- base::WrapUnique(new PendingFileChooser(params, completion)));
+ base::MakeUnique<PendingFileChooser>(params, completion));
if (file_chooser_completions_.size() == 1) {
// Actually show the browse dialog when this is the first request.
Send(new FrameHostMsg_RunFileChooser(routing_id_, params));
@@ -5728,7 +5728,7 @@ void RenderFrameImpl::InitializeUserMediaClient() {
DCHECK(!web_user_media_client_);
web_user_media_client_ = new UserMediaClientImpl(
this, RenderThreadImpl::current()->GetPeerConnectionDependencyFactory(),
- base::WrapUnique(new MediaStreamDispatcher(this)));
+ base::MakeUnique<MediaStreamDispatcher>(this));
#endif
}
« no previous file with comments | « content/renderer/push_messaging/push_messaging_dispatcher.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698