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

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

Issue 11968028: Remove connect message from Native Messaging API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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/native_message_process_host_posix.cc
diff --git a/chrome/browser/extensions/api/messaging/native_message_process_host_posix.cc b/chrome/browser/extensions/api/messaging/native_message_process_host_posix.cc
index 00f7e80744a5b0415d7f5113ff66189e7b0f084c..b2e9ed8e5bce8aeec4392c6a810dbf52f2ab3629 100644
--- a/chrome/browser/extensions/api/messaging/native_message_process_host_posix.cc
+++ b/chrome/browser/extensions/api/messaging/native_message_process_host_posix.cc
@@ -31,14 +31,8 @@ void NativeMessageProcessHost::OnFileCanReadWithoutBlocking(int fd) {
// Make sure that the fd given to us is the same one we started with.
CHECK_EQ(fd, read_file_);
- // If this is a sendMessage request, stop trying to read after the first
- // message.
- if (is_send_message_)
- read_watcher_.StopWatchingFileDescriptor();
-
- MessageType type;
std::string message;
- if (!ReadMessage(&type, &message)) {
+ if (!ReadMessage(&message)) {
// A read failed, is the process dead?
if (base::GetTerminationStatus(native_process_handle_, NULL) !=
base::TERMINATION_STATUS_STILL_RUNNING) {

Powered by Google App Engine
This is Rietveld 408576698