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

Issue 12300041: Add nativeMessaging extension permission (Closed)

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

Description

Add nativeMessaging extension permission Now extensions need to have nativeMessaging permission to be able to use native messaging API. BUG=142915 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=186340

Patch Set 1 : #

Total comments: 6

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -12 lines) Patch
M chrome/browser/extensions/api/messaging/message_service.cc View 1 2 3 4 1 chunk +17 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/api_permission.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M chrome/common/extensions/permissions/api_permission.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/permission_message.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set_unittest.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/dispatcher.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/runtime_custom_bindings.h View 1 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/runtime_custom_bindings.cc View 1 3 chunks +15 lines, -5 lines 0 comments Download
M chrome/test/data/extensions/api_test/native_messaging/manifest.json View 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
Sergey Ulanov
7 years, 9 months ago (2013-02-28 01:22:54 UTC) #1
Matt Perry
You should also add a call to CheckCurrentContextAccessToExtensionAPI(name))in OpenChannelToNativeApp. Having a check in the renderer ...
7 years, 9 months ago (2013-02-28 20:28:45 UTC) #2
Sergey Ulanov
Added a check in the renderer. Not sure what needs to be fixed in the ...
7 years, 9 months ago (2013-03-01 03:15:30 UTC) #3
Matt Perry
https://codereview.chromium.org/12300041/diff/2001/chrome/browser/extensions/api/messaging/native_messaging_apitest.cc File chrome/browser/extensions/api/messaging/native_messaging_apitest.cc (right): https://codereview.chromium.org/12300041/diff/2001/chrome/browser/extensions/api/messaging/native_messaging_apitest.cc#newcode56 chrome/browser/extensions/api/messaging/native_messaging_apitest.cc:56: switches::kEnableExperimentalExtensionApis); On 2013/03/01 03:15:30, sergeyu wrote: > On 2013/02/28 ...
7 years, 9 months ago (2013-03-01 20:31:13 UTC) #4
Sergey Ulanov
https://codereview.chromium.org/12300041/diff/2001/chrome/browser/extensions/api/messaging/native_messaging_apitest.cc File chrome/browser/extensions/api/messaging/native_messaging_apitest.cc (right): https://codereview.chromium.org/12300041/diff/2001/chrome/browser/extensions/api/messaging/native_messaging_apitest.cc#newcode56 chrome/browser/extensions/api/messaging/native_messaging_apitest.cc:56: switches::kEnableExperimentalExtensionApis); On 2013/03/01 20:31:13, Matt Perry wrote: > On ...
7 years, 9 months ago (2013-03-01 20:55:19 UTC) #5
Matt Perry
Great, lgtm
7 years, 9 months ago (2013-03-01 21:23:42 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/12300041/8002
7 years, 9 months ago (2013-03-01 22:24:33 UTC) #7
Sergey Ulanov
There was an issue that was caught by PermissionMessage unittests: the message for the new ...
7 years, 9 months ago (2013-03-02 00:26:40 UTC) #8
Matt Perry
https://codereview.chromium.org/12300041/diff/5003/chrome/common/extensions/permissions/api_permission.cc File chrome/common/extensions/permissions/api_permission.cc (right): https://codereview.chromium.org/12300041/diff/5003/chrome/common/extensions/permissions/api_permission.cc#newcode223 chrome/common/extensions/permissions/api_permission.cc:223: PermissionMessage::kNativeMessaging }, Let's copy the entry for APIPermission::kPlugin since ...
7 years, 9 months ago (2013-03-02 00:33:54 UTC) #9
Sergey Ulanov
+jschuh Justin, can you please advice on what would be the permission warning message for ...
7 years, 9 months ago (2013-03-02 01:14:27 UTC) #10
jschuh
On 2013/03/02 01:14:27, sergeyu wrote: > +jschuh > Justin, can you please advice on what ...
7 years, 9 months ago (2013-03-04 22:26:06 UTC) #11
Matt Perry
On 2013/03/04 22:26:06, Justin Schuh wrote: > On 2013/03/02 01:14:27, sergeyu wrote: > > +jschuh ...
7 years, 9 months ago (2013-03-04 22:51:52 UTC) #12
jschuh
On 2013/03/04 22:51:52, Matt Perry wrote: > On 2013/03/04 22:26:06, Justin Schuh wrote: > > ...
7 years, 9 months ago (2013-03-04 23:33:50 UTC) #13
Sergey Ulanov
On 2013/03/04 23:33:50, Justin Schuh wrote: > I expect we can improve the string, but ...
7 years, 9 months ago (2013-03-05 22:07:55 UTC) #14
Matt Perry
On 2013/03/05 22:07:55, sergeyu wrote: > On 2013/03/04 23:33:50, Justin Schuh wrote: > > I ...
7 years, 9 months ago (2013-03-05 22:10:06 UTC) #15
Matt Perry
OK, just talked it over with Justin, and he convinced me that we don't need ...
7 years, 9 months ago (2013-03-05 22:24:05 UTC) #16
Sergey Ulanov
On 2013/03/05 22:24:05, Matt Perry wrote: > OK, just talked it over with Justin, and ...
7 years, 9 months ago (2013-03-06 00:47:34 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sergeyu@chromium.org/12300041/22001
7 years, 9 months ago (2013-03-06 00:50:49 UTC) #18
commit-bot: I haz the power
7 years, 9 months ago (2013-03-06 03:41:37 UTC) #19
Message was sent while issue was closed.
Change committed as 186340

Powered by Google App Engine
This is Rietveld 408576698