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

Unified Diff: services/ui/ws/scheduled_animation_group.cc

Issue 2365753003: mus ws: Move 'reset(new' to base::MakeUnique. (Closed)
Patch Set: Merge with tot 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
« no previous file with comments | « services/ui/ws/platform_display.cc ('k') | services/ui/ws/server_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/scheduled_animation_group.cc
diff --git a/services/ui/ws/scheduled_animation_group.cc b/services/ui/ws/scheduled_animation_group.cc
index 1d37ae2dac3831f646a7ed960e83b0f0f44e3144..691585071ebfa322627723a69f9862e09a8b3b77 100644
--- a/services/ui/ws/scheduled_animation_group.cc
+++ b/services/ui/ws/scheduled_animation_group.cc
@@ -204,7 +204,7 @@ void SetPropertyToTargetProperty(ServerWindow* window,
duration += element.duration;
if (duration > max_end_duration) {
max_end_duration = duration;
- value.reset(new ScheduledAnimationValue(element.target_value));
+ value = base::MakeUnique<ScheduledAnimationValue>(element.target_value);
}
}
}
« no previous file with comments | « services/ui/ws/platform_display.cc ('k') | services/ui/ws/server_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698