Index: chrome/browser/autofill/validation_rules_storage_factory.cc |
diff --git a/chrome/browser/autofill/validation_rules_storage_factory.cc b/chrome/browser/autofill/validation_rules_storage_factory.cc |
index 9e1f4db6296e518699c1f1aed530bd7dc29a4225..21d685123b646199df45e60c5e97be321eb3e9a8 100644 |
--- a/chrome/browser/autofill/validation_rules_storage_factory.cc |
+++ b/chrome/browser/autofill/validation_rules_storage_factory.cc |
@@ -18,10 +18,10 @@ namespace autofill { |
using ::i18n::addressinput::Storage; |
// static |
-scoped_ptr<Storage> ValidationRulesStorageFactory::CreateStorage() { |
+std::unique_ptr<Storage> ValidationRulesStorageFactory::CreateStorage() { |
static base::LazyInstance<ValidationRulesStorageFactory> instance = |
LAZY_INSTANCE_INITIALIZER; |
- return scoped_ptr<Storage>( |
+ return std::unique_ptr<Storage>( |
new ChromeStorageImpl(instance.Get().json_pref_store_.get())); |
} |
@@ -37,8 +37,8 @@ ValidationRulesStorageFactory::ValidationRulesStorageFactory() { |
JsonPrefStore::GetTaskRunnerForFile( |
cache, content::BrowserThread::GetBlockingPool()); |
- json_pref_store_ = |
- new JsonPrefStore(cache, task_runner.get(), scoped_ptr<PrefFilter>()); |
+ json_pref_store_ = new JsonPrefStore(cache, task_runner.get(), |
+ std::unique_ptr<PrefFilter>()); |
json_pref_store_->ReadPrefsAsync(NULL); |
} |