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

Unified Diff: chrome_frame/policy_settings.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: chrome_frame/policy_settings.cc
diff --git a/chrome_frame/policy_settings.cc b/chrome_frame/policy_settings.cc
index 1a35d67f721f482e4a2b9e0d3303294fe85dde3b..50e465f6cf0dfcdcc218e1e8dfa4eef93b1d2468 100644
--- a/chrome_frame/policy_settings.cc
+++ b/chrome_frame/policy_settings.cc
@@ -153,3 +153,7 @@ void PolicySettings::RefreshFromRegistry() {
swap(application_locale_, application_locale);
}
+// static
+PolicySettings* PolicySettings::GetInstance() {
+ return Singleton<PolicySettings>::get();
+}

Powered by Google App Engine
This is Rietveld 408576698