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

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: thakis comment, renamed LAZY_INSTANCE_INITIALIZER 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..704e13a39930fa96b659c4ba2091132712392a0f 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 =
+ LAZY_INSTANCE_INITIALIZER;
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