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

Unified Diff: ceee/ie/broker/chrome_postman.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/chrome_postman.cc
diff --git a/ceee/ie/broker/chrome_postman.cc b/ceee/ie/broker/chrome_postman.cc
index 9a9562d52788d395c02087b3bd4a6e81efac9e43..430446a5ad411f85cc85d5500e154b7081d852a8 100644
--- a/ceee/ie/broker/chrome_postman.cc
+++ b/ceee/ie/broker/chrome_postman.cc
@@ -60,7 +60,7 @@ class ApiExecutionTask : public Task {
explicit ApiExecutionTask(BSTR message) : message_(message) {}
virtual void Run() {
- ProductionApiDispatcher::get()->HandleApiRequest(message_, NULL);
+ ProductionApiDispatcher::GetInstance()->HandleApiRequest(message_, NULL);
}
private:
CComBSTR message_;
@@ -72,8 +72,8 @@ class FireEventTask : public Task {
: event_name_(event_name), event_args_(event_args) {}
virtual void Run() {
- ProductionApiDispatcher::get()->FireEvent(event_name_.c_str(),
- event_args_.c_str());
+ ProductionApiDispatcher::GetInstance()->FireEvent(event_name_.c_str(),
+ event_args_.c_str());
}
private:
std::string event_name_;
@@ -318,11 +318,11 @@ ChromePostman::ApiInvocationWorkerThread::ApiInvocationWorkerThread()
void ChromePostman::ApiInvocationWorkerThread::Init() {
::CoInitializeEx(0, COINIT_MULTITHREADED);
- ProductionApiDispatcher::get()->SetApiInvocationThreadId(
+ ProductionApiDispatcher::GetInstance()->SetApiInvocationThreadId(
::GetCurrentThreadId());
}
void ChromePostman::ApiInvocationWorkerThread::CleanUp() {
::CoUninitialize();
- ProductionApiDispatcher::get()->SetApiInvocationThreadId(0);
+ ProductionApiDispatcher::GetInstance()->SetApiInvocationThreadId(0);
}

Powered by Google App Engine
This is Rietveld 408576698