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

Unified Diff: services/ui/ws/user_activity_monitor_unittest.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/test_utils.cc ('k') | services/ui/ws/window_manager_client_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/user_activity_monitor_unittest.cc
diff --git a/services/ui/ws/user_activity_monitor_unittest.cc b/services/ui/ws/user_activity_monitor_unittest.cc
index b91db6fa88a5445d70c6be5ce0b8d3b554d08f1b..2275c1843ab951f3baf9e426e715187c21f28f03 100644
--- a/services/ui/ws/user_activity_monitor_unittest.cc
+++ b/services/ui/ws/user_activity_monitor_unittest.cc
@@ -92,7 +92,8 @@ class UserActivityMonitorTest : public testing::Test {
task_runner_ = make_scoped_refptr(new base::TestMockTimeTaskRunner(
base::Time::Now(), base::TimeTicks::Now()));
message_loop_.SetTaskRunner(task_runner_);
- monitor_.reset(new UserActivityMonitor(task_runner_->GetMockTickClock()));
+ monitor_ =
+ base::MakeUnique<UserActivityMonitor>(task_runner_->GetMockTickClock());
}
base::MessageLoop message_loop_;
« no previous file with comments | « services/ui/ws/test_utils.cc ('k') | services/ui/ws/window_manager_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698