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

Unified Diff: ceee/common/process_utils_win.cc

Issue 5685007: Rename all methods accessing Singleton<T> as GetInstance(). (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
« no previous file with comments | « ceee/common/process_utils_win.h ('k') | ceee/ie/broker/executors_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ceee/common/process_utils_win.cc
diff --git a/ceee/common/process_utils_win.cc b/ceee/common/process_utils_win.cc
index 094af1eacebfff09c37301440c2b77898391cc44..80df82159087e29a25b82710e66431acff1a7b9b 100644
--- a/ceee/common/process_utils_win.cc
+++ b/ceee/common/process_utils_win.cc
@@ -130,6 +130,11 @@ ProcessCompatibilityCheck::ProcessCompatibilityCheck()
StandardInitialize();
}
+// static
+ProcessCompatibilityCheck* ProcessCompatibilityCheck::GetInstance() {
+ return Singleton<ProcessCompatibilityCheck>::get();
+}
+
void ProcessCompatibilityCheck::StandardInitialize() {
HRESULT hr = S_OK;
@@ -199,8 +204,7 @@ HRESULT ProcessCompatibilityCheck::IsCompatible(HWND process_window,
HRESULT ProcessCompatibilityCheck::IsCompatible(DWORD process_id,
bool* is_compatible) {
- ProcessCompatibilityCheck* instance
- = Singleton<ProcessCompatibilityCheck>::get();
+ ProcessCompatibilityCheck* instance = GetInstance();
DCHECK(instance != NULL);
DCHECK(is_compatible != NULL);
@@ -306,7 +310,7 @@ void ProcessCompatibilityCheck::PatchState(
CloseHandleFuncType close_handle_func,
IsWOW64ProcessFuncType is_wow64_process_func) {
PatchState(open_process_func, close_handle_func, is_wow64_process_func);
- Singleton<ProcessCompatibilityCheck>::get()->KnownStateInitialize(
+ GetInstance()->KnownStateInitialize(
system_type, current_process_wow64,
check_integrity, current_process_integrity);
}
@@ -324,7 +328,7 @@ void ProcessCompatibilityCheck::PatchState(
void ProcessCompatibilityCheck::ResetState() {
PatchState(OpenProcess, CloseHandle, IsWow64Process);
- Singleton<ProcessCompatibilityCheck>::get()->StandardInitialize();
+ GetInstance()->StandardInitialize();
}
} // namespace com
« no previous file with comments | « ceee/common/process_utils_win.h ('k') | ceee/ie/broker/executors_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698