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() |