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

Unified Diff: chrome/browser/extensions/api/preference/chrome_direct_setting_api.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/extensions/api/preference/chrome_direct_setting_api.cc
diff --git a/chrome/browser/extensions/api/preference/chrome_direct_setting_api.cc b/chrome/browser/extensions/api/preference/chrome_direct_setting_api.cc
index 36e86c67aded57e04653a985452ed45b92dd9291..26a2c9fa991a9b33bd7bbf87666be51cd61b336b 100644
--- a/chrome/browser/extensions/api/preference/chrome_direct_setting_api.cc
+++ b/chrome/browser/extensions/api/preference/chrome_direct_setting_api.cc
@@ -76,12 +76,12 @@ class PreferenceWhitelist {
DISALLOW_COPY_AND_ASSIGN(PreferenceWhitelist);
};
-base::LazyInstance<PreferenceWhitelist> preference_whitelist =
+base::LazyInstance<PreferenceWhitelist>::DestructorAtExit preference_whitelist =
LAZY_INSTANCE_INITIALIZER;
static base::LazyInstance<
- BrowserContextKeyedAPIFactory<ChromeDirectSettingAPI> > g_factory =
- LAZY_INSTANCE_INITIALIZER;
+ BrowserContextKeyedAPIFactory<ChromeDirectSettingAPI>>::DestructorAtExit
+ g_factory = LAZY_INSTANCE_INITIALIZER;
ChromeDirectSettingAPI::ChromeDirectSettingAPI(content::BrowserContext* context)
: profile_(Profile::FromBrowserContext(context)) {
« no previous file with comments | « chrome/browser/extensions/api/omnibox/omnibox_api.cc ('k') | chrome/browser/extensions/api/preference/preference_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698