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

Unified Diff: ceee/ie/plugin/bho/cookie_accountant.cc

Issue 5581008: Add a new GetInstance() method for singleton classes, take 2. (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: ceee/ie/plugin/bho/cookie_accountant.cc
diff --git a/ceee/ie/plugin/bho/cookie_accountant.cc b/ceee/ie/plugin/bho/cookie_accountant.cc
index 1da3256d88b27a258cf7dea250bb8a31aa4f35dc..3d0f3f134c0dffb9e2926c523603e2540f957e07 100644
--- a/ceee/ie/plugin/bho/cookie_accountant.cc
+++ b/ceee/ie/plugin/bho/cookie_accountant.cc
@@ -44,10 +44,15 @@ CookieAccountant::~CookieAccountant() {
ProductionCookieAccountant::ProductionCookieAccountant() {
}
+// static
+ProductionCookieAccountant* ProductionCookieAccountant::GetInstance() {
+ return Singleton<ProductionCookieAccountant>::get();
+}
+
CookieAccountant* CookieAccountant::GetInstance() {
// Unit tests can set singleton_instance_ directly.
if (singleton_instance_ == NULL)
- singleton_instance_ = ProductionCookieAccountant::get();
+ singleton_instance_ = ProductionCookieAccountant::GetInstance();
return singleton_instance_;
}

Powered by Google App Engine
This is Rietveld 408576698