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

Unified Diff: chrome/common/time_format.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/common/profiling.cc ('k') | chrome/default_plugin/install_dialog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/time_format.cc
diff --git a/chrome/common/time_format.cc b/chrome/common/time_format.cc
index 8ce4b257307209909c9ef87297b9ea3330fe3c31..d11b7ab39f4b1e9cfe80ad7cf84afb711ff6a85f 100644
--- a/chrome/common/time_format.cc
+++ b/chrome/common/time_format.cc
@@ -181,8 +181,8 @@ class TimeFormatter {
DISALLOW_COPY_AND_ASSIGN(TimeFormatter);
};
-static base::LazyInstance<TimeFormatter> g_time_formatter(
- base::LINKER_INITIALIZED);
+static base::LazyInstance<TimeFormatter> g_time_formatter =
+ LAZY_INSTANCE_INITIALIZER;
void TimeFormatter::BuildFormats(
FormatType format_type, std::vector<icu::PluralFormat*>* time_formats) {
« no previous file with comments | « chrome/common/profiling.cc ('k') | chrome/default_plugin/install_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698