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

Unified Diff: chrome/renderer/extensions/chrome_v8_extension.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
« no previous file with comments | « chrome/installer/util/master_preferences.cc ('k') | chrome/renderer/extensions/chrome_webstore_bindings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/chrome_v8_extension.cc
diff --git a/chrome/renderer/extensions/chrome_v8_extension.cc b/chrome/renderer/extensions/chrome_v8_extension.cc
index 95a9fb8c7169758484afee99b2656dc4c4d466c0..1320a8627df57c24161f7dae2fcbe37bca8b3132 100644
--- a/chrome/renderer/extensions/chrome_v8_extension.cc
+++ b/chrome/renderer/extensions/chrome_v8_extension.cc
@@ -32,10 +32,10 @@ const char kValidateCallbacks[] = "validateCallbacks";
#endif
typedef std::map<int, std::string> StringMap;
-static base::LazyInstance<StringMap> g_string_map(base::LINKER_INITIALIZED);
+static base::LazyInstance<StringMap> g_string_map = LAZY_INSTANCE_INITIALIZER;
-static base::LazyInstance<ChromeV8Extension::InstanceSet> g_instances(
- base::LINKER_INITIALIZED);
+static base::LazyInstance<ChromeV8Extension::InstanceSet> g_instances =
+ LAZY_INSTANCE_INITIALIZER;
} // namespace
« no previous file with comments | « chrome/installer/util/master_preferences.cc ('k') | chrome/renderer/extensions/chrome_webstore_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698