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

Issue 980353003: Extensions: Switch to new permission message system, part I (Closed)

Created:
5 years, 9 months ago by Marc Treib
Modified:
5 years, 9 months ago
Reviewers:
Yoyo Zhou, sashab
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, tfarina, extensions-reviews_chromium.org, benwells
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Extensions: Switch to new permission message system, part I - Update lots of tests to check that the old and new system match. - In the process, fix two small bugs in the new system. - Rename PermissionsData::GetPermissionMessageStrings and GetPermissionMessageDetailsStrings to "*Legacy*", to match the corresponding methods in PermissionMessageProvider. BUG=398257 TBR=asargent for a trivial rename in ephemeral_app_launcher.cc Committed: https://crrev.com/f91b57ec449cf77cec413328b7fc6fc3f48e6fe6 Cr-Commit-Position: refs/heads/master@{#321550}

Patch Set 1 #

Patch Set 2 : fix ALL the things! #

Patch Set 3 : cleanup;rebase #

Total comments: 16

Patch Set 4 : review (the easy parts) #

Total comments: 2

Patch Set 5 : rebase; don't switch callers #

Patch Set 6 : more tests #

Patch Set 7 : cleanup #

Patch Set 8 : fix #

Total comments: 6

Patch Set 9 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+941 lines, -650 lines) Patch
M chrome/browser/apps/ephemeral_app_launcher.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/permission_message_combinations_unittest.cc View 1 2 3 4 61 chunks +109 lines, -262 lines 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_permissions_panel.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_permissions_panel_unittest.cc View 1 2 5 chunks +8 lines, -12 lines 0 comments Download
M chrome/common/extensions/manifest_handlers/automation_unittest.cc View 1 2 3 4 15 chunks +40 lines, -68 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_permission_message_provider.h View 1 2 3 4 5 6 4 chunks +8 lines, -9 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_permission_message_provider.cc View 1 2 3 4 5 6 10 chunks +15 lines, -39 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_permission_message_rules.cc View 1 2 3 4 5 3 chunks +12 lines, -8 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set_unittest.cc View 1 2 3 4 5 15 chunks +95 lines, -142 lines 0 comments Download
M chrome/common/extensions/permissions/permissions_data_unittest.cc View 1 2 3 4 3 chunks +27 lines, -37 lines 0 comments Download
M chrome/common/extensions/permissions/settings_override_permission_unittest.cc View 1 2 3 4 6 chunks +21 lines, -36 lines 0 comments Download
M chrome/test/data/extensions/api_test/management/test/basics.js View 1 1 chunk +9 lines, -7 lines 0 comments Download
M extensions/browser/api/management/management_api.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M extensions/common/permissions/permission_message_provider.h View 1 2 3 4 5 6 3 chunks +13 lines, -2 lines 0 comments Download
M extensions/common/permissions/permission_message_provider.cc View 1 2 3 4 5 6 2 chunks +53 lines, -0 lines 0 comments Download
A extensions/common/permissions/permission_message_test_util.h View 1 2 3 4 5 1 chunk +91 lines, -0 lines 0 comments Download
A extensions/common/permissions/permission_message_test_util.cc View 1 2 3 4 5 6 7 8 1 chunk +414 lines, -0 lines 0 comments Download
M extensions/common/permissions/permissions_data.h View 1 2 3 4 5 6 7 8 3 chunks +10 lines, -5 lines 0 comments Download
M extensions/common/permissions/permissions_data.cc View 1 2 3 4 5 6 3 chunks +9 lines, -3 lines 0 comments Download
M extensions/extensions.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/shell/common/shell_extensions_client.cc View 1 2 3 4 5 6 1 chunk +0 lines, -6 lines 0 comments Download
M extensions/test/test_permission_message_provider.h View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download
M extensions/test/test_permission_message_provider.cc View 1 2 3 4 5 6 1 chunk +0 lines, -7 lines 0 comments Download

Messages

Total messages: 18 (4 generated)
Marc Treib
Part 1 of "flip the switch" - PTAL! (I'll add OWNERS once you've done a ...
5 years, 9 months ago (2015-03-09 14:08:02 UTC) #1
Marc Treib
+sashab - it helps to actually add the reviewer :D
5 years, 9 months ago (2015-03-09 16:07:50 UTC) #3
sashab
This generally looks awesome, but out of scaredness, may I make a suggestion - why ...
5 years, 9 months ago (2015-03-09 20:05:50 UTC) #4
sashab
Also... I'm actually in MTV this week, so might not get a chance to look ...
5 years, 9 months ago (2015-03-09 20:07:31 UTC) #5
Marc Treib
+yoz, then. PTAL!
5 years, 9 months ago (2015-03-10 12:08:41 UTC) #7
Marc Treib
On 2015/03/09 20:05:50, sasha_b wrote: > This generally looks awesome, but out of scaredness, may ...
5 years, 9 months ago (2015-03-10 12:09:54 UTC) #8
Yoyo Zhou
https://chromiumcodereview.appspot.com/980353003/diff/40001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://chromiumcodereview.appspot.com/980353003/diff/40001/chrome/browser/extensions/extension_service.cc#newcode1021 chrome/browser/extensions/extension_service.cc:1021: extension->permissions_data()->GetLegacyPermissionMessages(); On 2015/03/09 14:08:02, Marc Treib wrote: > Unfortunately, ...
5 years, 9 months ago (2015-03-11 01:33:23 UTC) #9
Marc Treib
https://chromiumcodereview.appspot.com/980353003/diff/40001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://chromiumcodereview.appspot.com/980353003/diff/40001/chrome/browser/extensions/extension_service.cc#newcode1021 chrome/browser/extensions/extension_service.cc:1021: extension->permissions_data()->GetLegacyPermissionMessages(); On 2015/03/11 01:33:23, Yoyo Zhou wrote: > On ...
5 years, 9 months ago (2015-03-11 13:08:52 UTC) #10
Marc Treib
PTAL again! This CL updates lots of tests to check both the old and the ...
5 years, 9 months ago (2015-03-16 15:00:13 UTC) #11
Yoyo Zhou
mostly LGTM https://codereview.chromium.org/980353003/diff/60001/extensions/common/permissions/permissions_data.h File extensions/common/permissions/permissions_data.h (right): https://codereview.chromium.org/980353003/diff/60001/extensions/common/permissions/permissions_data.h#newcode136 extensions/common/permissions/permissions_data.h:136: // Deprecated; use GetCoalescedPermissionMessages() instead. Why was ...
5 years, 9 months ago (2015-03-17 00:02:05 UTC) #12
Marc Treib
https://codereview.chromium.org/980353003/diff/60001/extensions/common/permissions/permissions_data.h File extensions/common/permissions/permissions_data.h (right): https://codereview.chromium.org/980353003/diff/60001/extensions/common/permissions/permissions_data.h#newcode136 extensions/common/permissions/permissions_data.h:136: // Deprecated; use GetCoalescedPermissionMessages() instead. On 2015/03/17 00:02:05, Yoyo ...
5 years, 9 months ago (2015-03-17 10:00:27 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/980353003/160001
5 years, 9 months ago (2015-03-20 10:27:08 UTC) #16
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 9 months ago (2015-03-20 11:45:09 UTC) #17
commit-bot: I haz the power
5 years, 9 months ago (2015-03-20 11:45:44 UTC) #18
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/f91b57ec449cf77cec413328b7fc6fc3f48e6fe6
Cr-Commit-Position: refs/heads/master@{#321550}

Powered by Google App Engine
This is Rietveld 408576698