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

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

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again Created 3 years, 9 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: 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 21d685123b646199df45e60c5e97be321eb3e9a8..8265c58519d306c7a5a43d90512536cb0eda8465 100644
--- a/chrome/browser/autofill/validation_rules_storage_factory.cc
+++ b/chrome/browser/autofill/validation_rules_storage_factory.cc
@@ -19,8 +19,8 @@ using ::i18n::addressinput::Storage;
// static
std::unique_ptr<Storage> ValidationRulesStorageFactory::CreateStorage() {
- static base::LazyInstance<ValidationRulesStorageFactory> instance =
- LAZY_INSTANCE_INITIALIZER;
+ static base::LazyInstance<ValidationRulesStorageFactory>::DestructorAtExit
+ instance = LAZY_INSTANCE_INITIALIZER;
return std::unique_ptr<Storage>(
new ChromeStorageImpl(instance.Get().json_pref_store_.get()));
}
« no previous file with comments | « chrome/browser/autofill/validation_rules_storage_factory.h ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698