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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « ash/sticky_keys/sticky_keys_controller.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/test/shelf_button_pressed_metric_tracker_test_api.h" 5 #include "ash/test/shelf_button_pressed_metric_tracker_test_api.h"
6 6
7 #include "base/time/tick_clock.h" 7 #include "base/time/tick_clock.h"
8 8
9 namespace ash { 9 namespace ash {
10 namespace test { 10 namespace test {
11 11
12 ShelfButtonPressedMetricTrackerTestAPI::ShelfButtonPressedMetricTrackerTestAPI( 12 ShelfButtonPressedMetricTrackerTestAPI::ShelfButtonPressedMetricTrackerTestAPI(
13 ShelfButtonPressedMetricTracker* shelf_button_pressed_metric_tracker) 13 ShelfButtonPressedMetricTracker* shelf_button_pressed_metric_tracker)
14 : shelf_button_pressed_metric_tracker_( 14 : shelf_button_pressed_metric_tracker_(
15 shelf_button_pressed_metric_tracker) {} 15 shelf_button_pressed_metric_tracker) {}
16 16
17 ShelfButtonPressedMetricTrackerTestAPI:: 17 ShelfButtonPressedMetricTrackerTestAPI::
18 ~ShelfButtonPressedMetricTrackerTestAPI() {} 18 ~ShelfButtonPressedMetricTrackerTestAPI() {}
19 19
20 void ShelfButtonPressedMetricTrackerTestAPI::SetTickClock( 20 void ShelfButtonPressedMetricTrackerTestAPI::SetTickClock(
21 std::unique_ptr<base::TickClock> tick_clock) { 21 std::unique_ptr<base::TickClock> tick_clock) {
22 shelf_button_pressed_metric_tracker_->tick_clock_.reset(tick_clock.release()); 22 shelf_button_pressed_metric_tracker_->tick_clock_ = std::move(tick_clock);
23 } 23 }
24 24
25 } // namespace test 25 } // namespace test
26 } // namespace ash 26 } // namespace ash
OLDNEW
« 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