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

Issue 18399007: Don't count host permission changes for v2 apps as a permission increase. (Closed)

Created:
7 years, 5 months ago by Yoyo Zhou
Modified:
7 years, 5 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Don't count host permission changes for v2 apps as a permission increase. BUG=255229 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=210704

Patch Set 1 #

Total comments: 2

Patch Set 2 : refactor #

Total comments: 2

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -48 lines) Patch
M chrome/browser/extensions/extension_service.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/permissions/permission_set.h View 1 2 chunks +11 lines, -6 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set.cc View 1 2 7 chunks +47 lines, -29 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set_unittest.cc View 5 chunks +22 lines, -12 lines 0 comments Download
A chrome/test/data/extensions/allow_silent_upgrade/platformapp1_new.json View 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/allow_silent_upgrade/platformapp1_old.json View 1 chunk +9 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/allow_silent_upgrade/platformapp2_new.json View 1 chunk +11 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/allow_silent_upgrade/platformapp2_old.json View 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Yoyo Zhou
7 years, 5 months ago (2013-07-09 00:16:46 UTC) #1
Jeffrey Yasskin
lgtm assuming apps warn about the same API permissions as extensions. https://codereview.chromium.org/18399007/diff/1/chrome/common/extensions/permissions/permission_set.cc File chrome/common/extensions/permissions/permission_set.cc (right): ...
7 years, 5 months ago (2013-07-09 00:32:57 UTC) #2
Yoyo Zhou
I'm going by the exception for platform apps in PermissionSet::GetPermissionMessages.
7 years, 5 months ago (2013-07-09 00:34:14 UTC) #3
Jeffrey Yasskin
Can you see any way to unify the list of non-warned permissions between these two ...
7 years, 5 months ago (2013-07-09 00:37:24 UTC) #4
Yoyo Zhou
I did some refactoring to make this flow better, but unfortunately there wasn't an easy ...
7 years, 5 months ago (2013-07-09 01:53:52 UTC) #5
miket_OOO
https://codereview.chromium.org/18399007/diff/1/chrome/common/extensions/permissions/permission_set.cc File chrome/common/extensions/permissions/permission_set.cc (right): https://codereview.chromium.org/18399007/diff/1/chrome/common/extensions/permissions/permission_set.cc#newcode460 chrome/common/extensions/permissions/permission_set.cc:460: if (HasLessAPIPrivilegesThan(permissions)) On 2013/07/09 00:32:57, Jeffrey Yasskin wrote: > ...
7 years, 5 months ago (2013-07-09 17:12:08 UTC) #6
Yoyo Zhou
https://codereview.chromium.org/18399007/diff/5002/chrome/common/extensions/permissions/permission_set.h File chrome/common/extensions/permissions/permission_set.h (right): https://codereview.chromium.org/18399007/diff/5002/chrome/common/extensions/permissions/permission_set.h#newcode181 chrome/common/extensions/permissions/permission_set.h:181: // Returns true if |permissions| has more host permissions ...
7 years, 5 months ago (2013-07-09 17:16:59 UTC) #7
miket_OOO
LGTM either way. Thanks!
7 years, 5 months ago (2013-07-09 17:25:49 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/18399007/5002
7 years, 5 months ago (2013-07-09 17:33:46 UTC) #9
commit-bot: I haz the power
Failed to apply patch for chrome/common/extensions/permissions/permission_set.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 5 months ago (2013-07-09 17:33:48 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/18399007/14001
7 years, 5 months ago (2013-07-09 18:59:50 UTC) #11
commit-bot: I haz the power
7 years, 5 months ago (2013-07-10 01:42:45 UTC) #12
Message was sent while issue was closed.
Change committed as 210704

Powered by Google App Engine
This is Rietveld 408576698