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

Unified Diff: components/filesystem/public/cpp/prefs/pref_service_factory.cc

Issue 1918083002: Convert //components/[f-n]* 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
Index: components/filesystem/public/cpp/prefs/pref_service_factory.cc
diff --git a/components/filesystem/public/cpp/prefs/pref_service_factory.cc b/components/filesystem/public/cpp/prefs/pref_service_factory.cc
index 67871addc41dffcf53e5a1a6e17732271aba3072..325b5e6191f1cd386038875db77c296ce29b0c46 100644
--- a/components/filesystem/public/cpp/prefs/pref_service_factory.cc
+++ b/components/filesystem/public/cpp/prefs/pref_service_factory.cc
@@ -23,8 +23,8 @@ void DoNothingHandleReadError(PersistentPrefStore::PrefReadError error) {}
} // namespace
-scoped_ptr<PrefService> CreatePrefService(shell::Connector* connector,
- PrefRegistry* pref_registry) {
+std::unique_ptr<PrefService> CreatePrefService(shell::Connector* connector,
+ PrefRegistry* pref_registry) {
filesystem::FileSystemPtr filesystem;
connector->ConnectToInterface("mojo:filesystem", &filesystem);
@@ -33,7 +33,7 @@ scoped_ptr<PrefService> CreatePrefService(shell::Connector* connector,
nullptr /* TODO(erg): pref filter */);
PrefNotifierImpl* pref_notifier = new PrefNotifierImpl();
- scoped_ptr<PrefService> pref_service(new PrefService(
+ std::unique_ptr<PrefService> pref_service(new PrefService(
pref_notifier,
new PrefValueStore(nullptr, nullptr, nullptr, nullptr, user_prefs.get(),
nullptr, pref_registry->defaults().get(),
« no previous file with comments | « components/filesystem/public/cpp/prefs/pref_service_factory.h ('k') | components/flags_ui/flags_state_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698