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

Unified Diff: chromecast/browser/pref_service_helper.cc

Issue 1875623002: Convert //chromecast 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 | « chromecast/browser/pref_service_helper.h ('k') | chromecast/browser/service/cast_service_simple.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/pref_service_helper.cc
diff --git a/chromecast/browser/pref_service_helper.cc b/chromecast/browser/pref_service_helper.cc
index a81bbf9095672d0a04c1955eb63389833d644212..c1b6e5cadfb4264b1342b12f7f68c60c31ca5ad5 100644
--- a/chromecast/browser/pref_service_helper.cc
+++ b/chromecast/browser/pref_service_helper.cc
@@ -38,7 +38,7 @@ base::FilePath GetConfigPath() {
} // namespace
// static
-scoped_ptr<PrefService> PrefServiceHelper::CreatePrefService(
+std::unique_ptr<PrefService> PrefServiceHelper::CreatePrefService(
PrefRegistrySimple* registry) {
const base::FilePath config_path(GetConfigPath());
VLOG(1) << "Loading config from " << config_path.value();
@@ -69,7 +69,8 @@ scoped_ptr<PrefService> PrefServiceHelper::CreatePrefService(
prefServiceFactory.set_read_error_callback(
base::Bind(&UserPrefsLoadError, &prefs_read_error));
- scoped_ptr<PrefService> pref_service(prefServiceFactory.Create(registry));
+ std::unique_ptr<PrefService> pref_service(
+ prefServiceFactory.Create(registry));
if (prefs_read_error != PersistentPrefStore::PREF_READ_ERROR_NONE) {
LOG(ERROR) << "Cannot initialize chromecast config: "
<< config_path.value()
« no previous file with comments | « chromecast/browser/pref_service_helper.h ('k') | chromecast/browser/service/cast_service_simple.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698