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

Unified Diff: remoting/host/local_input_monitor_thread_win.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: remoting/host/local_input_monitor_thread_win.cc
diff --git a/remoting/host/local_input_monitor_thread_win.cc b/remoting/host/local_input_monitor_thread_win.cc
index 8f9164cc51ba1984f6a3014a4f6d404e66a588f9..490b8914c8d6edc1306d39693bee464f165680a2 100644
--- a/remoting/host/local_input_monitor_thread_win.cc
+++ b/remoting/host/local_input_monitor_thread_win.cc
@@ -15,7 +15,7 @@ namespace {
LocalInputMonitorThread* g_local_input_monitor_thread = NULL;
base::LazyInstance<base::Lock,
base::LeakyLazyInstanceTraits<base::Lock> >
- g_thread_lock(base::LINKER_INITIALIZED);
+ g_thread_lock = LAZY_INSTANCE_INITIALIZER;
} // namespace

Powered by Google App Engine
This is Rietveld 408576698