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

Unified Diff: chrome/browser/ui/ash/chrome_keyboard_ui.cc

Issue 1550053002: Convert Pass()→std::move() in //chrome/browser/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
Index: chrome/browser/ui/ash/chrome_keyboard_ui.cc
diff --git a/chrome/browser/ui/ash/chrome_keyboard_ui.cc b/chrome/browser/ui/ash/chrome_keyboard_ui.cc
index f890e53b818d4efee29e33e0b5f48d9003098415..18efdcefca1eafc321a2bb2e5a4d89639f9b39d0 100644
--- a/chrome/browser/ui/ash/chrome_keyboard_ui.cc
+++ b/chrome/browser/ui/ash/chrome_keyboard_ui.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/ui/ash/chrome_keyboard_ui.h"
+#include <utility>
+
#include "ash/root_window_controller.h"
#include "ash/shell.h"
#include "ash/shell_window_ids.h"
@@ -97,9 +99,9 @@ class AshKeyboardControllerObserver
scoped_ptr<extensions::Event> event(new extensions::Event(
extensions::events::VIRTUAL_KEYBOARD_PRIVATE_ON_BOUNDS_CHANGED,
virtual_keyboard_private::OnBoundsChanged::kEventName,
- event_args.Pass()));
+ std::move(event_args)));
event->restrict_to_browser_context = context_;
- router->BroadcastEvent(event.Pass());
+ router->BroadcastEvent(std::move(event));
}
private:
@@ -218,7 +220,8 @@ void ChromeKeyboardUI::SetUpdateInputType(ui::TextInputType type) {
scoped_ptr<extensions::Event> event(new extensions::Event(
extensions::events::VIRTUAL_KEYBOARD_PRIVATE_ON_TEXT_INPUT_BOX_FOCUSED,
virtual_keyboard_private::OnTextInputBoxFocused::kEventName,
- event_args.Pass()));
+ std::move(event_args)));
event->restrict_to_browser_context = browser_context();
- router->DispatchEventToExtension(kVirtualKeyboardExtensionID, event.Pass());
+ router->DispatchEventToExtension(kVirtualKeyboardExtensionID,
+ std::move(event));
}
« no previous file with comments | « chrome/browser/ui/ash/ash_init.cc ('k') | chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698