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

Unified Diff: ash/virtual_keyboard_controller_unittest.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/system/chromeos/tray_display.cc ('k') | ash/wm/cursor_manager_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/virtual_keyboard_controller_unittest.cc
diff --git a/ash/virtual_keyboard_controller_unittest.cc b/ash/virtual_keyboard_controller_unittest.cc
index f7a59ef7e72b1b5f28e7cf1ed7a710ca81ac26a0..610c6d4047496106fd8a8182602d1d92a8740825 100644
--- a/ash/virtual_keyboard_controller_unittest.cc
+++ b/ash/virtual_keyboard_controller_unittest.cc
@@ -4,6 +4,7 @@
#include "ash/virtual_keyboard_controller.h"
+#include <utility>
#include <vector>
#include "ash/shell.h"
@@ -47,7 +48,7 @@ class VirtualKeyboardControllerTest : public AshTestBase {
void SetEventBlocker(
scoped_ptr<ScopedDisableInternalMouseAndKeyboard> blocker) {
Shell::GetInstance()->maximize_mode_controller()->event_blocker_ =
- blocker.Pass();
+ std::move(blocker);
}
void SetUp() override {
@@ -103,7 +104,7 @@ TEST_F(VirtualKeyboardControllerTest, RestoreKeyboardDevices) {
->EnableMaximizeModeWindowManager(true);
scoped_ptr<ScopedDisableInternalMouseAndKeyboard> blocker(
new MockEventBlocker);
- SetEventBlocker(blocker.Pass());
+ SetEventBlocker(std::move(blocker));
}
class VirtualKeyboardControllerAutoTest : public VirtualKeyboardControllerTest,
« no previous file with comments | « ash/system/chromeos/tray_display.cc ('k') | ash/wm/cursor_manager_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698