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

Unified Diff: ceee/ie/broker/api_dispatcher.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.h ('k') | ceee/ie/broker/api_dispatcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ceee/ie/broker/api_dispatcher.cc
===================================================================
--- ceee/ie/broker/api_dispatcher.cc (revision 66617)
+++ ceee/ie/broker/api_dispatcher.cc (working copy)
@@ -76,12 +76,12 @@
invocation->Execute(*args_list, request_id);
}
-void ApiDispatcher::FireEvent(BSTR event_name, BSTR event_args) {
+void ApiDispatcher::FireEvent(const char* event_name, const char* event_args) {
DCHECK(IsRunningInSingleThread());
DLOG(INFO) << "ApiDispatcher::FireEvent. " << event_name << " - " <<
event_args;
- std::string event_args_str(CW2A(event_args).m_psz);
- std::string event_name_str(CW2A(event_name).m_psz);
+ std::string event_args_str(event_args);
+ std::string event_name_str(event_name);
// Start by going through the permanent event handlers map.
PermanentEventHandlersMap::const_iterator iter =
permanent_event_handlers_.find(event_name_str);
« no previous file with comments | « ceee/ie/broker/api_dispatcher.h ('k') | ceee/ie/broker/api_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698