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

Unified Diff: ash/accelerators/magnifier_key_scroller.cc

Issue 1867223004: Convert //ash from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 8 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/magnifier_key_scroller.h ('k') | ash/accelerators/magnifier_key_scroller_unittest.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 b9cd646d8d454a7eac643005ecf749dd43001991..96a569e1833cd82ef88f44443c8e98499558d0da 100644
--- a/ash/accelerators/magnifier_key_scroller.cc
+++ b/ash/accelerators/magnifier_key_scroller.cc
@@ -36,9 +36,11 @@ 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(std::move(delegate)));
+std::unique_ptr<ui::EventHandler> MagnifierKeyScroller::CreateHandler() {
+ std::unique_ptr<KeyHoldDetector::Delegate> delegate(
+ new MagnifierKeyScroller());
+ return std::unique_ptr<ui::EventHandler>(
+ new KeyHoldDetector(std::move(delegate)));
}
bool MagnifierKeyScroller::ShouldProcessEvent(const ui::KeyEvent* event) const {
« no previous file with comments | « ash/accelerators/magnifier_key_scroller.h ('k') | ash/accelerators/magnifier_key_scroller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698