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

Unified Diff: chrome/browser/ui/app_list/search/people/people_result.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/app_list/search/people/people_result.cc
diff --git a/chrome/browser/ui/app_list/search/people/people_result.cc b/chrome/browser/ui/app_list/search/people/people_result.cc
index 2d4801366af84c5c41a58f5ff939670e65f76f22..6166bc07275350ca20854a41dbea5882f7add99d 100644
--- a/chrome/browser/ui/app_list/search/people/people_result.cc
+++ b/chrome/browser/ui/app_list/search/people/people_result.cc
@@ -5,7 +5,7 @@
#include "chrome/browser/ui/app_list/search/people/people_result.h"
#include <stddef.h>
-
+#include <utility>
#include <vector>
#include "base/bind.h"
@@ -59,7 +59,7 @@ PeopleResult::PeopleResult(Profile* profile,
scoped_ptr<Person> person)
: profile_(profile),
controller_(controller),
- person_(person.Pass()),
+ person_(std::move(person)),
weak_factory_(this) {
set_id(person_->id);
set_title(base::UTF8ToUTF16(person_->display_name));
@@ -112,7 +112,7 @@ void PeopleResult::InvokeAction(int action_index, int event_flags) {
scoped_ptr<SearchResult> PeopleResult::Duplicate() const {
return scoped_ptr<SearchResult>(
- new PeopleResult(profile_, controller_, person_->Duplicate().Pass()));
+ new PeopleResult(profile_, controller_, person_->Duplicate()));
}
void PeopleResult::OnIconLoaded() {
@@ -167,7 +167,7 @@ void PeopleResult::OpenChat() {
// TODO(rkc): Change this once we remove the hangoutsPrivate API.
// See crbug.com/306672
extensions::EventRouter::Get(profile_)
- ->DispatchEventToExtension(hangouts_extension_id_, event.Pass());
+ ->DispatchEventToExtension(hangouts_extension_id_, std::move(event));
content::RecordAction(base::UserMetricsAction("PeopleSearch_OpenChat"));
}

Powered by Google App Engine
This is Rietveld 408576698