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

Unified Diff: ui/app_list/search_box_model.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/app_list/search/mixer_unittest.cc ('k') | ui/app_list/search_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/search_box_model.cc
diff --git a/ui/app_list/search_box_model.cc b/ui/app_list/search_box_model.cc
index 87632d5f4b57800246e7e12a86552dc6b7974aff..3828facfba7a501877c63913ce1c85d1b3b0183e 100644
--- a/ui/app_list/search_box_model.cc
+++ b/ui/app_list/search_box_model.cc
@@ -4,6 +4,8 @@
#include "ui/app_list/search_box_model.h"
+#include <utility>
+
#include "base/metrics/histogram.h"
#include "ui/app_list/search_box_model_observer.h"
@@ -38,7 +40,7 @@ void SearchBoxModel::SetIcon(const gfx::ImageSkia& icon) {
void SearchBoxModel::SetSpeechRecognitionButton(
scoped_ptr<SearchBoxModel::SpeechButtonProperty> speech_button) {
- speech_button_ = speech_button.Pass();
+ speech_button_ = std::move(speech_button);
FOR_EACH_OBSERVER(SearchBoxModelObserver,
observers_,
SpeechRecognitionButtonPropChanged());
« no previous file with comments | « ui/app_list/search/mixer_unittest.cc ('k') | ui/app_list/search_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698