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

Unified Diff: chrome/browser/chromeos/login/ownership_service.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/login/ownership_service.cc
diff --git a/chrome/browser/chromeos/login/ownership_service.cc b/chrome/browser/chromeos/login/ownership_service.cc
index 945ab7721a002879e867adf1099c48b166a8d48e..c256e967a3bbe2a390c3c15cbf2906e84ecf6d0e 100644
--- a/chrome/browser/chromeos/login/ownership_service.cc
+++ b/chrome/browser/chromeos/login/ownership_service.cc
@@ -6,13 +6,17 @@
#include "base/file_path.h"
#include "base/file_util.h"
+#include "base/lazy_instance.h"
#include "chrome/browser/browser_thread.h"
namespace chromeos {
+static base::LazyInstance<OwnershipService> g_ownership_service(
+ base::LINKER_INITIALIZED);
+
// static
OwnershipService* OwnershipService::GetSharedInstance() {
- return Singleton<OwnershipService>::get();
+ return g_ownership_service.Pointer();
}
OwnershipService::OwnershipService()

Powered by Google App Engine
This is Rietveld 408576698