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

Unified Diff: ceee/ie/broker/broker.cc

Issue 4989002: Firing event to broker without worker thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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/ie/broker/api_dispatcher_unittest.cc ('k') | ceee/ie/broker/broker.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ceee/ie/broker/broker.cc
===================================================================
--- ceee/ie/broker/broker.cc (revision 66617)
+++ ceee/ie/broker/broker.cc (working copy)
@@ -7,12 +7,13 @@
#include "ceee/ie/broker/broker.h"
#include "base/logging.h"
+#include "base/utf_string_conversions.h"
+#include "ceee/common/com_utils.h"
#include "ceee/ie/broker/api_dispatcher.h"
#include "ceee/ie/broker/chrome_postman.h"
#include "ceee/ie/broker/executors_manager.h"
#include "ceee/ie/common/ceee_module_util.h"
-
HRESULT CeeeBroker::FinalConstruct() {
// So that we get a pointer to the ExecutorsManager and let tests override it.
executors_manager_ = Singleton<ExecutorsManager,
@@ -28,7 +29,9 @@
}
STDMETHODIMP CeeeBroker::FireEvent(BSTR event_name, BSTR event_args) {
- ChromePostman::GetInstance()->FireEvent(event_name, event_args);
+ ChromePostman::GetInstance()->FireEvent(
+ WideToUTF8(com::ToString(event_name)).c_str(),
+ WideToUTF8(com::ToString(event_args)).c_str());
return S_OK;
}
« no previous file with comments | « ceee/ie/broker/api_dispatcher_unittest.cc ('k') | ceee/ie/broker/broker.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698