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

Unified Diff: ui/views/mus/input_method_mus.cc

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/views/mus/aura_init.cc ('k') | ui/views/mus/surface_binding.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/input_method_mus.cc
diff --git a/ui/views/mus/input_method_mus.cc b/ui/views/mus/input_method_mus.cc
index cea183cb1216bede8ad8237586d071f82a0603f4..3234f8fec7e54c328d7ca5237fedef2b403e13a1 100644
--- a/ui/views/mus/input_method_mus.cc
+++ b/ui/views/mus/input_method_mus.cc
@@ -4,6 +4,8 @@
#include "ui/views/mus/input_method_mus.h"
+#include <utility>
+
#include "components/mus/public/cpp/window.h"
#include "mojo/converters/ime/ime_type_converters.h"
#include "ui/base/ime/text_input_client.h"
@@ -96,9 +98,9 @@ void InputMethodMUS::UpdateTextInputType() {
mojo::TextInputStatePtr state = mojo::TextInputState::New();
state->type = mojo::ConvertTo<mojo::TextInputType>(type);
if (type != ui::TEXT_INPUT_TYPE_NONE)
- window_->SetImeVisibility(true, state.Pass());
+ window_->SetImeVisibility(true, std::move(state));
else
- window_->SetTextInputState(state.Pass());
+ window_->SetTextInputState(std::move(state));
}
} // namespace mandoline
« no previous file with comments | « ui/views/mus/aura_init.cc ('k') | ui/views/mus/surface_binding.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698