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

Unified Diff: ash/test/shelf_button_pressed_metric_tracker_test_api.cc

Issue 2743193002: Replace unique_ptr.reset(other_unique_ptr.release()) with std::move() in ash/ (Closed)
Patch Set: Replace unique_ptr.reset(other_unique_ptr.release()) with std::move() in ash/ Created 3 years, 9 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 | « ash/sticky_keys/sticky_keys_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/shelf_button_pressed_metric_tracker_test_api.cc
diff --git a/ash/test/shelf_button_pressed_metric_tracker_test_api.cc b/ash/test/shelf_button_pressed_metric_tracker_test_api.cc
index 85afeb93f486d97994978ad0fb09e96c0f7ba6a2..6deddd6509e009588760aabbcf605f4a14f35650 100644
--- a/ash/test/shelf_button_pressed_metric_tracker_test_api.cc
+++ b/ash/test/shelf_button_pressed_metric_tracker_test_api.cc
@@ -19,7 +19,7 @@ ShelfButtonPressedMetricTrackerTestAPI::
void ShelfButtonPressedMetricTrackerTestAPI::SetTickClock(
std::unique_ptr<base::TickClock> tick_clock) {
- shelf_button_pressed_metric_tracker_->tick_clock_.reset(tick_clock.release());
+ shelf_button_pressed_metric_tracker_->tick_clock_ = std::move(tick_clock);
}
} // namespace test
« no previous file with comments | « ash/sticky_keys/sticky_keys_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698