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

Unified Diff: chrome_frame/dll_redirector.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/dll_redirector.cc
diff --git a/chrome_frame/dll_redirector.cc b/chrome_frame/dll_redirector.cc
index c6fe8cb69cb9de13514499fa4a684834582be448..97143a7f93f5bb96999cfea6751e5afe5cfff0cc 100644
--- a/chrome_frame/dll_redirector.cc
+++ b/chrome_frame/dll_redirector.cc
@@ -46,6 +46,11 @@ DllRedirector::~DllRedirector() {
UnregisterAsFirstCFModule();
}
+// static
+DllRedirector* DllRedirector::GetInstance() {
+ return Singleton<DllRedirector>::get();
+}
+
bool DllRedirector::BuildSecurityAttributesForLock(
CSecurityAttributes* sec_attr) {
DCHECK(sec_attr);

Powered by Google App Engine
This is Rietveld 408576698