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

Unified Diff: chrome/browser/extensions/api/messaging/message_service.cc

Issue 10918255: The Windows portion of Native Messagaing (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Less Sleepy Created 8 years, 2 months 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: chrome/browser/extensions/api/messaging/message_service.cc
diff --git a/chrome/browser/extensions/api/messaging/message_service.cc b/chrome/browser/extensions/api/messaging/message_service.cc
index 3a33d2a6a28a96f7cf8e10e0f3a4cfd1e69e826a..41e1f3e2caf91a958aa6f89d156317cf917f328f 100644
--- a/chrome/browser/extensions/api/messaging/message_service.cc
+++ b/chrome/browser/extensions/api/messaging/message_service.cc
@@ -216,7 +216,7 @@ void MessageService::OpenChannelToNativeApp(
NativeMessageProcessHost::TYPE_CONNECT;
content::BrowserThread::PostTask(
- content::BrowserThread::FILE,
+ content::BrowserThread::IO,
rvargas (doing something else) 2012/11/29 01:19:23 Why the IO thread?
eaugusti 2012/12/07 02:21:08 Because Windows' FILE thread has a MessageLoopForI
FROM_HERE,
base::Bind(&NativeMessageProcessHost::Create,
base::WeakPtr<NativeMessageProcessHost::Client>(
@@ -242,6 +242,8 @@ void MessageService::FinalizeOpenChannelToNativeApp(
// Abandon the channel
if (!native_process.get()) {
LOG(ERROR) << "Failed to create native process.";
+ channel->opener->DispatchOnDisconnect(
+ GET_OPPOSITE_PORT_ID(receiver_port_id), true);
return;
}
channel->receiver.reset(new NativeMessagePort(native_process.release()));

Powered by Google App Engine
This is Rietveld 408576698