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

Unified Diff: chrome/common/service_process_util.cc

Issue 5634005: Add a new GetInstance() method for singleton classes under chrome/service and /net. (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/common/service_process_util.cc
diff --git a/chrome/common/service_process_util.cc b/chrome/common/service_process_util.cc
index 489610a9893aa0683dbd486e9e6caaba68055269..944fcacaf219ba5dd53eb20b235fcf67d3d40e1a 100644
--- a/chrome/common/service_process_util.cc
+++ b/chrome/common/service_process_util.cc
@@ -156,6 +156,11 @@ ServiceProcessState::~ServiceProcessState() {
TearDownState();
}
+// static
+ServiceProcessState* ServiceProcessState::GetInstance() {
+ return Singleton<ServiceProcessState>::get();
+}
+
bool ServiceProcessState::Initialize() {
if (!TakeSingletonLock()) {
return false;

Powered by Google App Engine
This is Rietveld 408576698