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

Issue 1006453002: Extensions: Prepare switch to new permission message system (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, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Extensions: Prepare switch to new permission message system PermissionMessageProvider: - add GetPermissionMessageStrings which calls either the old or the new system, based on a field trial - rename GetWarningMessages/GetWarningMessagesDetails to *Legacy* - replace GetPermissionMessages by GetLegacyPermissionMessageIDs -> remove the old PermissionMessages type from the interface Callers have *not* been updated to use the new GetPermissionMessageStrings yet. TBRing trivial change in ephemeral_app_launcher.cc TBR=asargent@chromium.org BUG=398257 Committed: https://crrev.com/b566ee83484dd1ef53e25dd24bbd6fe02d80daec Cr-Commit-Position: refs/heads/master@{#320702}

Patch Set 1 #

Patch Set 2 : format #

Total comments: 6

Patch Set 3 : comment #

Total comments: 3

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -120 lines) Patch
M chrome/browser/apps/ephemeral_app_launcher.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/extensions/api/permissions/permissions_api.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_disabled_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_install_prompt.cc View 1 chunk +8 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 2 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/extensions/permission_messages_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_permission_message_provider.h View 1 2 2 chunks +13 lines, -3 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_permission_message_provider.cc View 1 5 chunks +44 lines, -2 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_permission_message_provider_unittest.cc View 1 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set_unittest.cc View 20 chunks +48 lines, -54 lines 0 comments Download
M extensions/browser/api/management/management_api.cc View 1 2 1 chunk +3 lines, -5 lines 0 comments Download
M extensions/common/permissions/permission_message.h View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/permissions/permission_message_provider.h View 3 chunks +34 lines, -11 lines 0 comments Download
M extensions/common/permissions/permission_message_provider.cc View 1 chunk +15 lines, -0 lines 0 comments Download
M extensions/common/permissions/permissions_data.h View 1 chunk +4 lines, -4 lines 0 comments Download
M extensions/common/permissions/permissions_data.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M extensions/shell/common/shell_extensions_client.cc View 2 chunks +10 lines, -4 lines 0 comments Download
M extensions/test/test_permission_message_provider.h View 1 chunk +6 lines, -3 lines 0 comments Download
M extensions/test/test_permission_message_provider.cc View 2 chunks +13 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
Marc Treib
yoz: PTAL! sashab: FYI, or feel free to take a look as well :)
5 years, 9 months ago (2015-03-12 15:19:51 UTC) #2
sashab
Ahh, I like this MUCH better. Thanks for adding the common interface. Will try to ...
5 years, 9 months ago (2015-03-12 16:05:30 UTC) #3
Yoyo Zhou
https://codereview.chromium.org/1006453002/diff/20001/chrome/common/extensions/permissions/chrome_permission_message_provider.cc File chrome/common/extensions/permissions/chrome_permission_message_provider.cc (right): https://codereview.chromium.org/1006453002/diff/20001/chrome/common/extensions/permissions/chrome_permission_message_provider.cc#newcode30 chrome/common/extensions/permissions/chrome_permission_message_provider.cc:30: base::FieldTrialList::FindFullName("PermissionMessageSystem"); You haven't defined this field trial yet (see ...
5 years, 9 months ago (2015-03-12 20:55:58 UTC) #4
Marc Treib
https://codereview.chromium.org/1006453002/diff/20001/chrome/common/extensions/permissions/chrome_permission_message_provider.cc File chrome/common/extensions/permissions/chrome_permission_message_provider.cc (right): https://codereview.chromium.org/1006453002/diff/20001/chrome/common/extensions/permissions/chrome_permission_message_provider.cc#newcode30 chrome/common/extensions/permissions/chrome_permission_message_provider.cc:30: base::FieldTrialList::FindFullName("PermissionMessageSystem"); On 2015/03/12 20:55:57, Yoyo Zhou wrote: > You ...
5 years, 9 months ago (2015-03-13 10:43:09 UTC) #5
Yoyo Zhou
LGTM, for me at least. https://codereview.chromium.org/1006453002/diff/20001/chrome/common/extensions/permissions/chrome_permission_message_provider.cc File chrome/common/extensions/permissions/chrome_permission_message_provider.cc (right): https://codereview.chromium.org/1006453002/diff/20001/chrome/common/extensions/permissions/chrome_permission_message_provider.cc#newcode30 chrome/common/extensions/permissions/chrome_permission_message_provider.cc:30: base::FieldTrialList::FindFullName("PermissionMessageSystem"); On 2015/03/13 10:43:09, ...
5 years, 9 months ago (2015-03-13 18:08:13 UTC) #6
sashab
Had a proper look, and LGTM, awesome job. Great work with the transition class too, ...
5 years, 9 months ago (2015-03-13 18:26:21 UTC) #7
Marc Treib
Yay! Thanks for the feedback! There should be TODO(treib)s everywhere I've added to-be-cleaned code. If ...
5 years, 9 months ago (2015-03-16 09:11:04 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1006453002/60001
5 years, 9 months ago (2015-03-16 09:13:03 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 9 months ago (2015-03-16 10:20:57 UTC) #12
commit-bot: I haz the power
5 years, 9 months ago (2015-03-16 10:21:54 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b566ee83484dd1ef53e25dd24bbd6fe02d80daec
Cr-Commit-Position: refs/heads/master@{#320702}

Powered by Google App Engine
This is Rietveld 408576698