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

Unified Diff: ui/base/accelerators/accelerator.h

Issue 1539583003: Convert Pass()→std::move() in ui/ (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
« no previous file with comments | « ui/aura/window_tree_host_platform.cc ('k') | ui/base/l10n/formatter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/accelerators/accelerator.h
diff --git a/ui/base/accelerators/accelerator.h b/ui/base/accelerators/accelerator.h
index 9e5c2acad9dc6a56c0b6c6b204827b1acb72d1b9..0a02e39d4cc1a4817a4ee5d2106e72b9b38dd472 100644
--- a/ui/base/accelerators/accelerator.h
+++ b/ui/base/accelerators/accelerator.h
@@ -11,6 +11,8 @@
#ifndef UI_BASE_ACCELERATORS_ACCELERATOR_H_
#define UI_BASE_ACCELERATORS_ACCELERATOR_H_
+#include <utility>
+
#include "base/memory/scoped_ptr.h"
#include "base/strings/string16.h"
#include "ui/base/accelerators/platform_accelerator.h"
@@ -66,7 +68,7 @@ class UI_BASE_EXPORT Accelerator {
base::string16 GetShortcutText() const;
void set_platform_accelerator(scoped_ptr<PlatformAccelerator> p) {
- platform_accelerator_ = p.Pass();
+ platform_accelerator_ = std::move(p);
}
// This class keeps ownership of the returned object.
« no previous file with comments | « ui/aura/window_tree_host_platform.cc ('k') | ui/base/l10n/formatter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698