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

Unified Diff: services/catalog/catalog.cc

Issue 1910673002: Convert //services from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « services/catalog/catalog.h ('k') | services/catalog/entry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/catalog/catalog.cc
diff --git a/services/catalog/catalog.cc b/services/catalog/catalog.cc
index 68c4ab9d09686aa722a48992f073dc09c8934aed..235c79e2783e643c9b033df920f9e36226ffa8fb 100644
--- a/services/catalog/catalog.cc
+++ b/services/catalog/catalog.cc
@@ -5,6 +5,7 @@
#include "services/catalog/catalog.h"
#include "base/bind.h"
+#include "base/memory/ptr_util.h"
#include "services/catalog/constants.h"
#include "services/catalog/instance.h"
#include "services/catalog/reader.h"
@@ -14,7 +15,7 @@
namespace catalog {
Catalog::Catalog(base::TaskRunner* file_task_runner,
- scoped_ptr<Store> store,
+ std::unique_ptr<Store> store,
ManifestProvider* manifest_provider)
: file_task_runner_(file_task_runner),
store_(std::move(store)),
@@ -64,7 +65,7 @@ Instance* Catalog::GetInstanceForUserId(const std::string& user_id) {
// TODO(beng): There needs to be a way to load the store from different users.
Instance* instance = new Instance(std::move(store_), system_reader_.get());
- instances_[user_id] = make_scoped_ptr(instance);
+ instances_[user_id] = base::WrapUnique(instance);
if (loaded_)
instance->CacheReady(&system_cache_);
« no previous file with comments | « services/catalog/catalog.h ('k') | services/catalog/entry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698