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

Unified Diff: chrome/renderer/extensions/event_bindings.cc

Issue 8491043: Allow linker initialization of lazy instance (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix CrOS Created 9 years, 1 month 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/renderer/extensions/event_bindings.cc
diff --git a/chrome/renderer/extensions/event_bindings.cc b/chrome/renderer/extensions/event_bindings.cc
index 4a315bcc247b207389f37cadccfc581871f88ab9..5ca617757451415d3eb9e11d7eab77c02fd45276 100644
--- a/chrome/renderer/extensions/event_bindings.cc
+++ b/chrome/renderer/extensions/event_bindings.cc
@@ -46,8 +46,8 @@ struct SingletonData {
std::map<std::string, EventListenerCounts> listener_counts_;
};
-static base::LazyInstance<SingletonData> g_singleton_data(
- base::LINKER_INITIALIZED);
+static base::LazyInstance<SingletonData> g_singleton_data =
+ LINKER_ZERO_INITIALIZED;
static EventListenerCounts& GetListenerCounts(const std::string& extension_id) {
return g_singleton_data.Get().listener_counts_[extension_id];

Powered by Google App Engine
This is Rietveld 408576698