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

Unified Diff: content/browser/mock_resource_context.cc

Issue 8491043: Allow linker initialization of lazy instance (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: willchan comments + rebase 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/browser/mock_resource_context.cc
diff --git a/content/browser/mock_resource_context.cc b/content/browser/mock_resource_context.cc
index 2406273c7415c4d565c5b952022e231499755c80..3d8b4ddf313277b8a2906f90721502ad2e2efa67 100644
--- a/content/browser/mock_resource_context.cc
+++ b/content/browser/mock_resource_context.cc
@@ -10,7 +10,7 @@
namespace content {
static base::LazyInstance<MockResourceContext>
- g_mock_resource_context(base::LINKER_INITIALIZED);
+ g_mock_resource_context = LAZY_INSTANCE_INITIALIZER;
MockResourceContext* MockResourceContext::GetInstance() {
return &g_mock_resource_context.Get();

Powered by Google App Engine
This is Rietveld 408576698