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

Unified Diff: ceee/ie/broker/tab_api_module.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/broker/tab_api_module.cc
diff --git a/ceee/ie/broker/tab_api_module.cc b/ceee/ie/broker/tab_api_module.cc
index 420007ecd729de881d1a30749a440dfcdd5d50e7..4d91bb5e0e01528332061e4287699d7081439b0a 100644
--- a/ceee/ie/broker/tab_api_module.cc
+++ b/ceee/ie/broker/tab_api_module.cc
@@ -153,8 +153,7 @@ bool CeeeMapTabIdToHandle(const std::string& input_args,
int tab_id = kInvalidChromeSessionId;
HWND tab_handle = NULL;
if (GetIdAndHandleFromArgs(input_args, &tab_id, &tab_handle)) {
- Singleton<ExecutorsManager, ExecutorsManager::SingletonTraits>::get()->
- SetTabIdForHandle(tab_id, tab_handle);
+ ExecutorsManager::GetInstance()->SetTabIdForHandle(tab_id, tab_handle);
return true;
}
return false;
@@ -166,8 +165,8 @@ bool CeeeMapToolbandIdToHandle(const std::string& input_args,
int toolband_id = kInvalidChromeSessionId;
HWND tab_handle = NULL;
if (GetIdAndHandleFromArgs(input_args, &toolband_id, &tab_handle)) {
- Singleton<ExecutorsManager, ExecutorsManager::SingletonTraits>::get()->
- SetTabToolBandIdForHandle(toolband_id, tab_handle);
+ ExecutorsManager::GetInstance()->SetTabToolBandIdForHandle(toolband_id,
+ tab_handle);
return true;
}
return false;

Powered by Google App Engine
This is Rietveld 408576698