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

Issue 12285015: Require manifests for native messaging hosts. (Closed)

Created:
7 years, 10 months ago by Sergey Ulanov
Modified:
7 years, 9 months ago
Reviewers:
Nico, Matt Perry
CC:
chromium-reviews, Aaron Boodman, sail+watch_chromium.org, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Require manifests for native messaging hosts. Previously native messaging hosts were discovered by looking in the user data directory. That approach is hard to use and is not reliable. Now chrome will look for a host manifest file in a system-specific directory and load that file to find host binary. BUG=142915 TBR=thakis@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=185189

Patch Set 1 : #

Patch Set 2 : ~ #

Patch Set 3 : #

Total comments: 20

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+581 lines, -47 lines) Patch
M chrome/browser/extensions/api/messaging/message_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/messaging/native_message_process_host.h View 1 2 3 4 5 6 7 8 9 4 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/messaging/native_message_process_host.cc View 1 2 3 4 5 6 7 8 9 6 chunks +15 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/messaging/native_message_process_host_unittest.cc View 1 2 3 4 5 6 7 8 9 5 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/messaging/native_messaging_apitest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +46 lines, -7 lines 0 comments Download
A chrome/browser/extensions/api/messaging/native_messaging_host_manifest.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +62 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/messaging/native_messaging_host_manifest.cc View 1 2 3 4 5 6 7 1 chunk +138 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/messaging/native_messaging_host_manifest_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +127 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/messaging/native_process_launcher.h View 1 2 3 4 5 6 7 8 9 2 chunks +21 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/messaging/native_process_launcher.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +77 lines, -19 lines 0 comments Download
M chrome/browser/extensions/api/messaging/native_process_launcher_posix.cc View 1 2 3 4 5 6 7 8 9 1 chunk +23 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/messaging/native_process_launcher_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +45 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/examples/extensions/native_messaging/popup.js View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/test/data/extensions/api_test/native_messaging/manifest.json View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/native_messaging/test.js View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
Sergey Ulanov
7 years, 10 months ago (2013-02-16 00:09:48 UTC) #1
Matt Perry
handful of nits, mostly LGTM https://codereview.chromium.org/12285015/diff/3026/chrome/browser/extensions/api/messaging/native_messaging_apitest.cc File chrome/browser/extensions/api/messaging/native_messaging_apitest.cc (right): https://codereview.chromium.org/12285015/diff/3026/chrome/browser/extensions/api/messaging/native_messaging_apitest.cc#newcode43 chrome/browser/extensions/api/messaging/native_messaging_apitest.cc:43: ASSERT_TRUE(serializer.Serialize(*manifest)); nit: maybe move ...
7 years, 10 months ago (2013-02-16 02:00:51 UTC) #2
Sergey Ulanov
PTAL. Addressed all comments and added unittests. https://codereview.chromium.org/12285015/diff/3026/chrome/browser/extensions/api/messaging/native_messaging_apitest.cc File chrome/browser/extensions/api/messaging/native_messaging_apitest.cc (right): https://codereview.chromium.org/12285015/diff/3026/chrome/browser/extensions/api/messaging/native_messaging_apitest.cc#newcode43 chrome/browser/extensions/api/messaging/native_messaging_apitest.cc:43: ASSERT_TRUE(serializer.Serialize(*manifest)); On ...
7 years, 10 months ago (2013-02-20 00:05:36 UTC) #3
Matt Perry
lgtm https://codereview.chromium.org/12285015/diff/17001/chrome/browser/extensions/api/messaging/native_messaging_host_manifest.h File chrome/browser/extensions/api/messaging/native_messaging_host_manifest.h (right): https://codereview.chromium.org/12285015/diff/17001/chrome/browser/extensions/api/messaging/native_messaging_host_manifest.h#newcode31 chrome/browser/extensions/api/messaging/native_messaging_host_manifest.h:31: static bool IsValidHostName(const std::string& name); This confused me ...
7 years, 10 months ago (2013-02-20 00:44:20 UTC) #4
Sergey Ulanov
https://codereview.chromium.org/12285015/diff/17001/chrome/browser/extensions/api/messaging/native_messaging_host_manifest.h File chrome/browser/extensions/api/messaging/native_messaging_host_manifest.h (right): https://codereview.chromium.org/12285015/diff/17001/chrome/browser/extensions/api/messaging/native_messaging_host_manifest.h#newcode31 chrome/browser/extensions/api/messaging/native_messaging_host_manifest.h:31: static bool IsValidHostName(const std::string& name); On 2013/02/20 00:44:20, Matt ...
7 years, 10 months ago (2013-02-20 00:56:17 UTC) #5
Sergey Ulanov
+thakis in TBR for chrome/chrome_browser_extensions.gypi
7 years, 9 months ago (2013-02-27 23:08:28 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sergeyu@chromium.org/12285015/35001
7 years, 9 months ago (2013-02-27 23:09:00 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/12285015/49003
7 years, 9 months ago (2013-02-28 00:12:18 UTC) #8
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 9 months ago (2013-02-28 01:48:45 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sergeyu@chromium.org/12285015/57004
7 years, 9 months ago (2013-02-28 02:13:39 UTC) #10
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=116508
7 years, 9 months ago (2013-02-28 04:02:16 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sergeyu@chromium.org/12285015/62003
7 years, 9 months ago (2013-02-28 07:07:27 UTC) #12
commit-bot: I haz the power
Change committed as 185189
7 years, 9 months ago (2013-02-28 09:19:04 UTC) #13
Nico
7 years, 9 months ago (2013-02-28 09:25:30 UTC) #14
Message was sent while issue was closed.
gypi lgtm

Powered by Google App Engine
This is Rietveld 408576698