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 377553003: Create a ManifestPermission implementation for Automation. (Closed)

Created:
6 years, 5 months ago by aboxhall
Modified:
6 years, 5 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, not at google - send to devlin, rpaquay
Base URL:
https://chromium.googlesource.com/chromium/src@master
Project:
chromium
Visibility:
Public.

Description

Create a ManifestPermission implementation for Automation. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284761 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284855

Patch Set 1 #

Patch Set 2 : Working, probably; untested #

Total comments: 2

Patch Set 3 : Updated automation_unittest.cc to test warning messages #

Patch Set 4 : Fix match patterns in permissions and add a test for matches in both permissions and automation #

Patch Set 5 : Doesn't compile #

Patch Set 6 : still doesn't compile #

Patch Set 7 : still doesn't compile #

Patch Set 8 : Rebase #

Patch Set 9 : Simplify AutomationInfo::Clone #

Total comments: 41

Patch Set 10 : rebase #

Patch Set 11 : Devlin review comments #

Total comments: 13

Patch Set 12 : Remaining comments #

Total comments: 4

Patch Set 13 : More review comments #

Total comments: 3

Patch Set 14 : const #

Patch Set 15 : Revert changes to automation_apitest.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+345 lines, -54 lines) Patch
M chrome/common/extensions/manifest_handlers/automation.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +33 lines, -22 lines 0 comments Download
M chrome/common/extensions/manifest_handlers/automation.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +185 lines, -13 lines 0 comments Download
M chrome/common/extensions/manifest_handlers/automation_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 chunks +87 lines, -10 lines 0 comments Download
M chrome/test/data/extensions/manifest_tests/automation_boolean_true.json View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/manifest_tests/automation_desktop_false.json View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/manifest_tests/automation_interact_true.json View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/manifest_tests/automation_matches_and_permissions.json View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M extensions/common/permissions/permission_set.cc View 1 2 1 chunk +2 lines, -6 lines 0 comments Download
M extensions/common/url_pattern_set.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -0 lines 0 comments Download
M extensions/common/url_pattern_set.cc View 1 2 3 4 5 6 7 2 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
David Tseng
One small comment. https://codereview.chromium.org/377553003/diff/20001/chrome/common/extensions/manifest_handlers/automation.cc File chrome/common/extensions/manifest_handlers/automation.cc (right): https://codereview.chromium.org/377553003/diff/20001/chrome/common/extensions/manifest_handlers/automation.cc#newcode40 chrome/common/extensions/manifest_handlers/automation.cc:40: class AutomationManifestPermission : public ManifestPermission { ...
6 years, 5 months ago (2014-07-08 18:37:39 UTC) #1
aboxhall
Ok, this is ready for an actual look now.
6 years, 5 months ago (2014-07-18 15:51:02 UTC) #2
aboxhall
https://codereview.chromium.org/377553003/diff/20001/chrome/common/extensions/manifest_handlers/automation.cc File chrome/common/extensions/manifest_handlers/automation.cc (right): https://codereview.chromium.org/377553003/diff/20001/chrome/common/extensions/manifest_handlers/automation.cc#newcode40 chrome/common/extensions/manifest_handlers/automation.cc:40: class AutomationManifestPermission : public ManifestPermission { On 2014/07/08 18:37:39, ...
6 years, 5 months ago (2014-07-18 15:55:15 UTC) #3
not at google - send to devlin
sorry devlin, just a couple of drive-bys since alice and I were discussing the IPC ...
6 years, 5 months ago (2014-07-18 16:07:23 UTC) #4
not at google - send to devlin
Also +rpaquay as an FYI, maybe he has ideas too.
6 years, 5 months ago (2014-07-18 16:08:15 UTC) #5
Devlin
https://codereview.chromium.org/377553003/diff/180001/chrome/common/extensions/manifest_handlers/automation.cc File chrome/common/extensions/manifest_handlers/automation.cc (right): https://codereview.chromium.org/377553003/diff/180001/chrome/common/extensions/manifest_handlers/automation.cc#newcode53 chrome/common/extensions/manifest_handlers/automation.cc:53: virtual PermissionMessages GetMessages() const OVERRIDE { We should probably ...
6 years, 5 months ago (2014-07-18 22:38:51 UTC) #6
aboxhall
https://codereview.chromium.org/377553003/diff/180001/chrome/common/extensions/manifest_handlers/automation.cc File chrome/common/extensions/manifest_handlers/automation.cc (right): https://codereview.chromium.org/377553003/diff/180001/chrome/common/extensions/manifest_handlers/automation.cc#newcode53 chrome/common/extensions/manifest_handlers/automation.cc:53: virtual PermissionMessages GetMessages() const OVERRIDE { On 2014/07/18 22:38:51, ...
6 years, 5 months ago (2014-07-19 22:08:21 UTC) #7
aboxhall
[bump - just bubbling this up in your inbox]
6 years, 5 months ago (2014-07-21 16:32:57 UTC) #8
aboxhall
On 2014/07/21 16:32:57, aboxhall wrote: > [bump - just bubbling this up in your inbox] ...
6 years, 5 months ago (2014-07-21 19:27:27 UTC) #9
Devlin
Sorry for the delay. https://codereview.chromium.org/377553003/diff/180001/chrome/common/extensions/manifest_handlers/automation.cc File chrome/common/extensions/manifest_handlers/automation.cc (right): https://codereview.chromium.org/377553003/diff/180001/chrome/common/extensions/manifest_handlers/automation.cc#newcode53 chrome/common/extensions/manifest_handlers/automation.cc:53: virtual PermissionMessages GetMessages() const OVERRIDE ...
6 years, 5 months ago (2014-07-21 19:45:36 UTC) #10
aboxhall
https://codereview.chromium.org/377553003/diff/180001/chrome/common/extensions/manifest_handlers/automation.cc File chrome/common/extensions/manifest_handlers/automation.cc (right): https://codereview.chromium.org/377553003/diff/180001/chrome/common/extensions/manifest_handlers/automation.cc#newcode53 chrome/common/extensions/manifest_handlers/automation.cc:53: virtual PermissionMessages GetMessages() const OVERRIDE { On 2014/07/21 19:45:35, ...
6 years, 5 months ago (2014-07-21 22:44:11 UTC) #11
Devlin
https://codereview.chromium.org/377553003/diff/180001/chrome/common/extensions/manifest_handlers/automation.cc File chrome/common/extensions/manifest_handlers/automation.cc (right): https://codereview.chromium.org/377553003/diff/180001/chrome/common/extensions/manifest_handlers/automation.cc#newcode53 chrome/common/extensions/manifest_handlers/automation.cc:53: virtual PermissionMessages GetMessages() const OVERRIDE { On 2014/07/21 22:44:10, ...
6 years, 5 months ago (2014-07-21 23:43:53 UTC) #12
aboxhall
https://codereview.chromium.org/377553003/diff/180001/chrome/common/extensions/manifest_handlers/automation.cc File chrome/common/extensions/manifest_handlers/automation.cc (right): https://codereview.chromium.org/377553003/diff/180001/chrome/common/extensions/manifest_handlers/automation.cc#newcode53 chrome/common/extensions/manifest_handlers/automation.cc:53: virtual PermissionMessages GetMessages() const OVERRIDE { On 2014/07/21 23:43:52, ...
6 years, 5 months ago (2014-07-22 17:00:09 UTC) #13
Devlin
LGTM https://codereview.chromium.org/377553003/diff/180001/chrome/common/extensions/manifest_handlers/automation.cc File chrome/common/extensions/manifest_handlers/automation.cc (right): https://codereview.chromium.org/377553003/diff/180001/chrome/common/extensions/manifest_handlers/automation.cc#newcode53 chrome/common/extensions/manifest_handlers/automation.cc:53: virtual PermissionMessages GetMessages() const OVERRIDE { On 2014/07/22 ...
6 years, 5 months ago (2014-07-22 17:36:02 UTC) #14
aboxhall
https://codereview.chromium.org/377553003/diff/260001/chrome/common/extensions/manifest_handlers/automation.cc File chrome/common/extensions/manifest_handlers/automation.cc (right): https://codereview.chromium.org/377553003/diff/260001/chrome/common/extensions/manifest_handlers/automation.cc#newcode231 chrome/common/extensions/manifest_handlers/automation.cc:231: Automation::Object& automation_object = *automation->as_object; On 2014/07/22 17:36:02, Devlin wrote: ...
6 years, 5 months ago (2014-07-22 17:47:52 UTC) #15
aboxhall
The CQ bit was checked by aboxhall@chromium.org
6 years, 5 months ago (2014-07-22 17:47:57 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aboxhall@chromium.org/377553003/280001
6 years, 5 months ago (2014-07-22 17:49:39 UTC) #17
commit-bot: I haz the power
Change committed as 284761
6 years, 5 months ago (2014-07-22 20:16:08 UTC) #18
Justin Donnelly
A revert of this CL has been created in https://codereview.chromium.org/408143011/ by jdonnelly@chromium.org. The reason for ...
6 years, 5 months ago (2014-07-23 00:39:44 UTC) #19
aboxhall
The CQ bit was checked by aboxhall@chromium.org
6 years, 5 months ago (2014-07-23 01:59:38 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aboxhall@chromium.org/377553003/300001
6 years, 5 months ago (2014-07-23 02:01:44 UTC) #21
commit-bot: I haz the power
6 years, 5 months ago (2014-07-23 06:15:19 UTC) #22
Message was sent while issue was closed.
Change committed as 284855

Powered by Google App Engine
This is Rietveld 408576698