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

Unified Diff: content/renderer/render_thread_impl.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: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 962e8569b21753acf8a39184c9bd3d7779656184..2fce676959d66b8441436ed55aec0750d1fe2c37 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -108,8 +108,8 @@ static const int kPopupListBoxMinimumRowHeight = 60;
// Keep the global RenderThreadImpl in a TLS slot so it is impossible to access
// incorrectly from the wrong thread.
-static base::LazyInstance<base::ThreadLocalPointer<RenderThreadImpl> > lazy_tls(
- base::LINKER_INITIALIZED);
+static base::LazyInstance<base::ThreadLocalPointer<RenderThreadImpl> >
+ lazy_tls = LAZY_INSTANCE_INITIALIZER;
class RenderViewZoomer : public content::RenderViewVisitor {
public:

Powered by Google App Engine
This is Rietveld 408576698