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

Unified Diff: cc/animation/animation_host.cc

Issue 2258833002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 | « no previous file | cc/animation/animation_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/animation_host.cc
diff --git a/cc/animation/animation_host.cc b/cc/animation/animation_host.cc
index 148a0afe0ae62c63d2178675e1bdd4b8568c06bc..61489094ce75220abe3115dabc16275306014477 100644
--- a/cc/animation/animation_host.cc
+++ b/cc/animation/animation_host.cc
@@ -46,10 +46,9 @@ AnimationHost::AnimationHost(ThreadInstance thread_instance)
animation_waiting_for_deletion_(false) {
if (thread_instance_ == ThreadInstance::IMPL) {
scroll_offset_animations_impl_ =
- base::WrapUnique(new ScrollOffsetAnimationsImpl(this));
+ base::MakeUnique<ScrollOffsetAnimationsImpl>(this);
} else {
- scroll_offset_animations_ =
- base::WrapUnique(new ScrollOffsetAnimations(this));
+ scroll_offset_animations_ = base::MakeUnique<ScrollOffsetAnimations>(this);
}
}
@@ -295,7 +294,7 @@ bool AnimationHost::UpdateAnimationState(bool start_ready_animations,
}
std::unique_ptr<AnimationEvents> AnimationHost::CreateEvents() {
- return base::WrapUnique(new AnimationEvents());
+ return base::MakeUnique<AnimationEvents>();
}
void AnimationHost::SetAnimationEvents(
« no previous file with comments | « no previous file | cc/animation/animation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698