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

Unified Diff: ash/accelerators/magnifier_key_scroller.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 4 years, 12 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/accelerators/key_hold_detector.cc ('k') | ash/accelerators/spoken_feedback_toggler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/magnifier_key_scroller.cc
diff --git a/ash/accelerators/magnifier_key_scroller.cc b/ash/accelerators/magnifier_key_scroller.cc
index f5198dc702a2d82997a341d0a60783d51f2b2c87..b9cd646d8d454a7eac643005ecf749dd43001991 100644
--- a/ash/accelerators/magnifier_key_scroller.cc
+++ b/ash/accelerators/magnifier_key_scroller.cc
@@ -4,6 +4,8 @@
#include "ash/accelerators/magnifier_key_scroller.h"
+#include <utility>
+
#include "ash/accelerators/key_hold_detector.h"
#include "ash/ash_switches.h"
#include "ash/magnifier/magnification_controller.h"
@@ -36,7 +38,7 @@ void MagnifierKeyScroller::SetEnabled(bool enabled) {
// static
scoped_ptr<ui::EventHandler> MagnifierKeyScroller::CreateHandler() {
scoped_ptr<KeyHoldDetector::Delegate> delegate(new MagnifierKeyScroller());
- return scoped_ptr<ui::EventHandler>(new KeyHoldDetector(delegate.Pass()));
+ return scoped_ptr<ui::EventHandler>(new KeyHoldDetector(std::move(delegate)));
}
bool MagnifierKeyScroller::ShouldProcessEvent(const ui::KeyEvent* event) const {
« no previous file with comments | « ash/accelerators/key_hold_detector.cc ('k') | ash/accelerators/spoken_feedback_toggler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698