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

Unified Diff: ash/accelerators/key_hold_detector.cc

Issue 1551133002: Convert Pass()→std::move() in //ash (CrOS edition) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
Index: ash/accelerators/key_hold_detector.cc
diff --git a/ash/accelerators/key_hold_detector.cc b/ash/accelerators/key_hold_detector.cc
index 99a9abb52152bb652291611c2824b241e79ac880..0c8d1ed337798620b385fbdd8973973f8854d774 100644
--- a/ash/accelerators/key_hold_detector.cc
+++ b/ash/accelerators/key_hold_detector.cc
@@ -4,6 +4,8 @@
#include "ash/accelerators/key_hold_detector.h"
+#include <utility>
+
#include "ash/shell.h"
#include "base/message_loop/message_loop.h"
#include "ui/aura/window_tracker.h"
@@ -43,8 +45,7 @@ void PostPressedEvent(ui::KeyEvent* event) {
} // namespace
KeyHoldDetector::KeyHoldDetector(scoped_ptr<Delegate> delegate)
- : state_(INITIAL),
- delegate_(delegate.Pass()) {}
+ : state_(INITIAL), delegate_(std::move(delegate)) {}
KeyHoldDetector::~KeyHoldDetector() {}
« no previous file with comments | « ash/accelerators/accelerator_interactive_uitest_chromeos.cc ('k') | ash/accelerators/magnifier_key_scroller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698