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

Unified Diff: chrome/service/cloud_print/cloud_print_token_store.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/service/cloud_print/cloud_print_token_store.cc
diff --git a/chrome/service/cloud_print/cloud_print_token_store.cc b/chrome/service/cloud_print/cloud_print_token_store.cc
index 1fb39b026cbe44640c4932a02dcb9f0fac8ab8e2..dd34e4f52498916fd4dd5580e8a416ad3e62b7cf 100644
--- a/chrome/service/cloud_print/cloud_print_token_store.cc
+++ b/chrome/service/cloud_print/cloud_print_token_store.cc
@@ -11,8 +11,9 @@ namespace cloud_print {
// Keep the global CloudPrintTokenStore in a TLS slot so it is impossible to
// incorrectly from the wrong thread.
-static base::LazyInstance<base::ThreadLocalPointer<CloudPrintTokenStore> >
- lazy_tls = LAZY_INSTANCE_INITIALIZER;
+static base::LazyInstance<
+ base::ThreadLocalPointer<CloudPrintTokenStore>>::DestructorAtExit lazy_tls =
+ LAZY_INSTANCE_INITIALIZER;
CloudPrintTokenStore* CloudPrintTokenStore::current() {
return lazy_tls.Pointer()->Get();
« no previous file with comments | « chrome/renderer/safe_browsing/phishing_classifier_delegate.cc ('k') | chrome/test/base/web_ui_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698