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

Unified Diff: chrome/browser/chromeos/cros_settings.cc

Issue 5734002: Continuation of CL 5685007, rename the singleton accessor method in more files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 10 years 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 0c86226afc87caeb00f572e1fc501c1883675e4f..d5cbe6b7191499f855b1090e8a60b0688f58a5ee 100644
--- a/chrome/browser/chromeos/cros_settings.cc
+++ b/chrome/browser/chromeos/cros_settings.cc
@@ -4,7 +4,7 @@
#include "chrome/browser/chromeos/cros_settings.h"
-#include "base/singleton.h"
+#include "base/lazy_instance.h"
#include "base/string_util.h"
#include "base/values.h"
#include "chrome/browser/chromeos/cros_settings_provider.h"
@@ -13,9 +13,12 @@
namespace chromeos {
+static base::LazyInstance<CrosSettings> g_cros_settings(
+ base::LINKER_INITIALIZED);
+
CrosSettings* CrosSettings::Get() {
// TODO(xiyaun): Use real stuff when underlying libcros is ready.
- return Singleton<CrosSettings>::get();
+ return g_cros_settings.Pointer();
}
bool CrosSettings::IsCrosSettings(const std::string& path) {

Powered by Google App Engine
This is Rietveld 408576698