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

Issue 11968028: Remove connect message from Native Messaging API (Closed)

Created:
7 years, 11 months ago by Sergey Ulanov
Modified:
7 years, 11 months ago
CC:
chromium-reviews, Aaron Boodman, darin-cc_chromium.org, sail+watch_chromium.org, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Remove connect message from Native Messaging API Previously chrome.extension.connectNative() was accepting a second parameter for the first message send to the host. It was inconsistent with chrome.extension.connect() and is not really necessary. Also removed type field from the native messages. Also fixed in the test to avoid dependency on external test binary files (single_message_request.msg and single_message_response.msg). BUG=142915 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=178171

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -357 lines) Patch
M chrome/browser/extensions/api/messaging/message_service.h View 1 2 2 chunks +3 lines, -12 lines 0 comments Download
M chrome/browser/extensions/api/messaging/message_service.cc View 1 2 2 chunks +6 lines, -30 lines 0 comments Download
M chrome/browser/extensions/api/messaging/native_message_process_host.h View 1 2 6 chunks +23 lines, -67 lines 0 comments Download
M chrome/browser/extensions/api/messaging/native_message_process_host.cc View 1 2 3 4 5 chunks +71 lines, -90 lines 1 comment Download
M chrome/browser/extensions/api/messaging/native_message_process_host_posix.cc View 1 2 1 chunk +1 line, -7 lines 0 comments Download
M chrome/browser/extensions/api/messaging/native_message_process_host_unittest_posix.cc View 1 2 7 chunks +70 lines, -47 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.h View 1 2 1 chunk +1 line, -5 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.cc View 1 2 1 chunk +7 lines, -14 lines 0 comments Download
M chrome/common/extensions/api/runtime.json View 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/common/extensions/docs/examples/extensions/native_messaging/echo.py View 1 2 2 chunks +6 lines, -19 lines 0 comments Download
M chrome/common/extensions/docs/examples/extensions/native_messaging/popup.js View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/common/extensions/extension_messages.h View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M chrome/renderer/extensions/runtime_custom_bindings.cc View 1 2 1 chunk +2 lines, -8 lines 0 comments Download
M chrome/renderer/resources/extensions/runtime_custom_bindings.js View 1 2 3 3 chunks +10 lines, -25 lines 0 comments Download
M chrome/test/data/extensions/api_test/native_messaging/test.js View 3 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/test/data/native_messaging/native_hosts/echo.py View 1 2 2 chunks +6 lines, -19 lines 0 comments Download
D chrome/test/data/native_messaging/single_message_request.msg View 1 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/test/data/native_messaging/single_message_response.msg View 1 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Sergey Ulanov
7 years, 11 months ago (2013-01-17 02:11:39 UTC) #1
Matt Perry
Nice cleanup! LGTM https://codereview.chromium.org/11968028/diff/11001/chrome/browser/extensions/api/messaging/native_message_process_host_unittest_posix.cc File chrome/browser/extensions/api/messaging/native_message_process_host_unittest_posix.cc (right): https://codereview.chromium.org/11968028/diff/11001/chrome/browser/extensions/api/messaging/native_message_process_host_unittest_posix.cc#newcode161 chrome/browser/extensions/api/messaging/native_message_process_host_unittest_posix.cc:161: file_util::Delete(temp_input_file, false /* non-recursive */); nit: ...
7 years, 11 months ago (2013-01-17 19:26:38 UTC) #2
Sergey Ulanov
+brettw for OWNERS stamp in chrome/browser/renderer_host +jschuh for extension_messages.h mpcomplete@, PTAL, particularly at my new ...
7 years, 11 months ago (2013-01-18 02:50:11 UTC) #3
jschuh
ipc security lgtm (removing ipc surface is always good :)
7 years, 11 months ago (2013-01-18 06:07:49 UTC) #4
brettw
renderer_host lgtm
7 years, 11 months ago (2013-01-18 20:40:47 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sergeyu@chromium.org/11968028/25004
7 years, 11 months ago (2013-01-21 20:51:35 UTC) #6
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 11 months ago (2013-01-21 21:34:17 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sergeyu@chromium.org/11968028/43004
7 years, 11 months ago (2013-01-22 20:24:44 UTC) #8
Matt Perry
lgtm
7 years, 11 months ago (2013-01-22 20:26:59 UTC) #9
commit-bot: I haz the power
Change committed as 178171
7 years, 11 months ago (2013-01-23 00:21:03 UTC) #10
jln (very slow on Chromium)
7 years, 11 months ago (2013-01-23 01:28:13 UTC) #11
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/11968028/diff/43004/chrome/browser/ext...
File chrome/browser/extensions/api/messaging/native_message_process_host.cc
(right):

https://chromiumcodereview.appspot.com/11968028/diff/43004/chrome/browser/ext...
chrome/browser/extensions/api/messaging/native_message_process_host.cc:185:
pickle.WriteBytes(message_meta_data, 8);
Oops ?

That's why sizeof is good ;)

Powered by Google App Engine
This is Rietveld 408576698