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

Unified Diff: ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.cc

Issue 1547223002: Convert Pass()→std::move() in //ash (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 | « ash/wm/maximize_mode/maximize_mode_window_state.cc ('k') | ash/wm/overview/window_grid.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.cc
diff --git a/ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.cc b/ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.cc
index 2f7fde2acadef896089c3c29a80ddd9dbff5f789..3c7e09e9f76ea69a463e3b454c39969548f55afc 100644
--- a/ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.cc
+++ b/ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.cc
@@ -4,9 +4,10 @@
#include "ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.h"
-#include <set>
-#include <X11/extensions/XInput2.h>
#include <X11/Xlib.h>
+#include <X11/extensions/XInput2.h>
+#include <set>
+#include <utility>
#include "ash/display/window_tree_host_manager.h"
#include "ash/screen_util.h"
@@ -112,7 +113,7 @@ ScopedDisableInternalMouseAndKeyboardX11::
excepted_keys->insert(ui::VKEY_VOLUME_DOWN);
excepted_keys->insert(ui::VKEY_VOLUME_UP);
excepted_keys->insert(ui::VKEY_POWER);
- device_data_manager->SetDisabledKeyboardAllowedKeys(excepted_keys.Pass());
+ device_data_manager->SetDisabledKeyboardAllowedKeys(std::move(excepted_keys));
ui::PlatformEventSource::GetInstance()->AddPlatformEventObserver(this);
}
« no previous file with comments | « ash/wm/maximize_mode/maximize_mode_window_state.cc ('k') | ash/wm/overview/window_grid.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698