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

Unified Diff: cc/animation/animation_unittest.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 | « cc/animation/animation_host.cc ('k') | cc/animation/transform_operations_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/animation_unittest.cc
diff --git a/cc/animation/animation_unittest.cc b/cc/animation/animation_unittest.cc
index edf0f7939eef0847a10fd7d0af6815d3f703bdbc..6e3a9e7e93dcbf0c81cdd73bfef4419711c38a19 100644
--- a/cc/animation/animation_unittest.cc
+++ b/cc/animation/animation_unittest.cc
@@ -23,8 +23,8 @@ std::unique_ptr<Animation> CreateAnimation(double iterations,
double duration,
double playback_rate) {
std::unique_ptr<Animation> to_return(
- Animation::Create(base::WrapUnique(new FakeFloatAnimationCurve(duration)),
- 0, 1, TargetProperty::OPACITY));
+ Animation::Create(base::MakeUnique<FakeFloatAnimationCurve>(duration), 0,
+ 1, TargetProperty::OPACITY));
to_return->set_iterations(iterations);
to_return->set_playback_rate(playback_rate);
return to_return;
« no previous file with comments | « cc/animation/animation_host.cc ('k') | cc/animation/transform_operations_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698