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

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

Issue 5622001: Make sure we don't keep tab id - handles mapping when a dread dies.... (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
===================================================================
--- ceee/ie/broker/chrome_postman.cc (revision 68024)
+++ ceee/ie/broker/chrome_postman.cc (working copy)
@@ -6,12 +6,12 @@
#include "ceee/ie/broker/chrome_postman.h"
#include "base/string_util.h"
+#include "ceee/common/com_utils.h"
#include "ceee/ie/broker/api_dispatcher.h"
#include "ceee/ie/common/api_registration.h"
#include "ceee/ie/common/ceee_module_util.h"
#include "chrome/browser/automation/extension_automation_constants.h"
#include "chrome/common/url_constants.h"
-#include "ceee/common/com_utils.h"
namespace ext = extension_automation_constants;
@@ -121,6 +121,16 @@
}
}
+void ChromePostman::QueueApiInvocationThreadTask(Task* task) {
+ MessageLoop* message_loop = api_worker_thread_.message_loop();
+ if (message_loop) {
+ message_loop->PostTask(FROM_HERE, task);
+ } else {
+ LOG(ERROR) << "Trying to queue a task before the API worker thread is"
+ "completely initialized and ready.";
+ }
+}
+
void ChromePostman::FireEvent(const char* event_name, const char* event_args) {
MessageLoop* message_loop = api_worker_thread_.message_loop();
if (message_loop) {

Powered by Google App Engine
This is Rietveld 408576698