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

Unified Diff: chrome/browser/ui/app_list/search/people/person.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/person.cc
diff --git a/chrome/browser/ui/app_list/search/people/person.cc b/chrome/browser/ui/app_list/search/people/person.cc
index 8c1673ff813d7def31c00ef516f14b794cace194..488d1537ac69fbbf7db7fe619335a11c95e1c26a 100644
--- a/chrome/browser/ui/app_list/search/people/person.cc
+++ b/chrome/browser/ui/app_list/search/people/person.cc
@@ -63,8 +63,8 @@ std::string GetTargetValue(const base::DictionaryValue& dict,
namespace app_list {
// static
-scoped_ptr<Person> Person::Create(const base::DictionaryValue& dict) {
- scoped_ptr<Person> person(new Person());
+std::unique_ptr<Person> Person::Create(const base::DictionaryValue& dict) {
+ std::unique_ptr<Person> person(new Person());
// Person id's.
if (!dict.GetString(kKeyId, &person->id) ||
@@ -105,8 +105,8 @@ Person::Person() : interaction_rank(0.0) {
Person::~Person() {
}
-scoped_ptr<Person> Person::Duplicate() {
- scoped_ptr<Person> person(new Person());
+std::unique_ptr<Person> Person::Duplicate() {
+ std::unique_ptr<Person> person(new Person());
*person = *this;
return person;
}
« no previous file with comments | « chrome/browser/ui/app_list/search/people/person.h ('k') | chrome/browser/ui/app_list/search/search_controller_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698