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

Unified Diff: chrome/browser/chromeos/cros_settings.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: chrome/browser/chromeos/cros_settings.cc
diff --git a/chrome/browser/chromeos/cros_settings.cc b/chrome/browser/chromeos/cros_settings.cc
index 3afc1685c4412ab1a3bc896ef66d82539e4340c6..9bbb4f9c25b52d481c81f43242cc04e6cbbb6b33 100644
--- a/chrome/browser/chromeos/cros_settings.cc
+++ b/chrome/browser/chromeos/cros_settings.cc
@@ -17,8 +17,8 @@
namespace chromeos {
-static base::LazyInstance<CrosSettings> g_cros_settings(
- base::LINKER_INITIALIZED);
+static base::LazyInstance<CrosSettings> g_cros_settings =
+ LAZY_INSTANCE_INITIALIZER;
CrosSettings* CrosSettings::Get() {
// TODO(xiyaun): Use real stuff when underlying libcros is ready.

Powered by Google App Engine
This is Rietveld 408576698