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

Unified Diff: chrome/browser/autofill/validation_rules_storage_factory.cc

Issue 1857663002: chrome/browser/autofill: scoped_ptr -> unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed 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 | « chrome/browser/autofill/validation_rules_storage_factory.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « chrome/browser/autofill/validation_rules_storage_factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698