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

Unified Diff: chrome/browser/ui/app_list/search/people/people_result.cc

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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
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 bebf5c711f7a1f7689e35da770740ebf88852e74..9bfb791b1f47e56acac96854b199c1e4206f46ad 100644
--- a/chrome/browser/ui/app_list/search/people/people_result.cc
+++ b/chrome/browser/ui/app_list/search/people/people_result.cc
@@ -56,7 +56,7 @@ namespace app_list {
PeopleResult::PeopleResult(Profile* profile,
AppListControllerDelegate* controller,
- scoped_ptr<Person> person)
+ std::unique_ptr<Person> person)
: profile_(profile),
controller_(controller),
person_(std::move(person)),
@@ -110,8 +110,8 @@ void PeopleResult::InvokeAction(int action_index, int event_flags) {
}
}
-scoped_ptr<SearchResult> PeopleResult::Duplicate() const {
- return scoped_ptr<SearchResult>(
+std::unique_ptr<SearchResult> PeopleResult::Duplicate() const {
+ return std::unique_ptr<SearchResult>(
new PeopleResult(profile_, controller_, person_->Duplicate()));
}
@@ -160,7 +160,7 @@ void PeopleResult::OpenChat() {
target.id = person_->owner_id;
request.to.push_back(std::move(target));
- scoped_ptr<extensions::Event> event(new extensions::Event(
+ std::unique_ptr<extensions::Event> event(new extensions::Event(
extensions::events::HANGOUTS_PRIVATE_ON_HANGOUT_REQUESTED,
OnHangoutRequested::kEventName, OnHangoutRequested::Create(request)));
« no previous file with comments | « chrome/browser/ui/app_list/search/people/people_result.h ('k') | chrome/browser/ui/app_list/search/people/person.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698