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

Unified Diff: ios/chrome/browser/reading_list/reading_list_model_factory.cc

Issue 1861593005: Convert //ios 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: ios/chrome/browser/reading_list/reading_list_model_factory.cc
diff --git a/ios/chrome/browser/reading_list/reading_list_model_factory.cc b/ios/chrome/browser/reading_list/reading_list_model_factory.cc
index 17052494df28007811579cde091f2f2029a25fb5..a0b2166299b7af0aecb747537cec0eb035fc1a4d 100644
--- a/ios/chrome/browser/reading_list/reading_list_model_factory.cc
+++ b/ios/chrome/browser/reading_list/reading_list_model_factory.cc
@@ -39,11 +39,11 @@ ReadingListModelFactory::ReadingListModelFactory()
ReadingListModelFactory::~ReadingListModelFactory() {}
-scoped_ptr<KeyedService> ReadingListModelFactory::BuildServiceInstanceFor(
+std::unique_ptr<KeyedService> ReadingListModelFactory::BuildServiceInstanceFor(
web::BrowserState* context) const {
std::unique_ptr<ReadingListModelStorage> storage(
new ReadingListModelStorageDefaults());
- scoped_ptr<ReadingListModelMemory> reading_list_model(
+ std::unique_ptr<ReadingListModelMemory> reading_list_model(
new ReadingListModelMemory(std::move(storage)));
return std::move(reading_list_model);
}

Powered by Google App Engine
This is Rietveld 408576698