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

Issue 1094873002: Extensions: Switch to new permission message system, part V (Closed)

Created:
5 years, 8 months ago by Marc Treib
Modified:
5 years, 7 months ago
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, extensions-reviews_chromium.org, asvitkine+watch_chromium.org, estade+watch_chromium.org, chromium-apps-reviews_chromium.org, pedrosimonetti+watch_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 V Add new UMA histograms for APIPermission::ID (which will eventually replace PermissionMessage::ID) TBRing a mechanical change in app_launcher_handler.cc TBR=estade BUG=398257 Committed: https://crrev.com/2e0517f9e7eaf7901a00d8e475c4cf37c534f9e9 Cr-Commit-Position: refs/heads/master@{#328874}

Patch Set 1 #

Total comments: 17

Patch Set 2 : review (also rebase) #

Patch Set 3 : presubmit #

Total comments: 8

Patch Set 4 : kalman review #

Total comments: 15

Patch Set 5 : mpearson review #

Total comments: 2

Patch Set 6 : mpearson review2 #

Total comments: 2

Patch Set 7 : mpearson review3 #

Patch Set 8 : rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+625 lines, -71 lines) Patch
M chrome/browser/extensions/api/webstore_private/webstore_private_api.cc View 1 2 3 4 5 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/extensions/crx_installer.cc View 1 2 3 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_disabled_ui.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 7 8 chunks +35 lines, -15 lines 0 comments Download
M chrome/browser/extensions/installed_loader.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/navigation_observer.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/ntp/app_launcher_handler.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
A + extensions/common/PRESUBMIT.py View 1 2 3 chunks +7 lines, -7 lines 0 comments Download
M extensions/common/permissions/api_permission.h View 1 2 3 4 5 6 7 3 chunks +12 lines, -11 lines 0 comments Download
M extensions/common/permissions/permission_message.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 14 chunks +542 lines, -12 lines 1 comment Download
M tools/metrics/histograms/update_extension_permission.py View 2 chunks +11 lines, -2 lines 0 comments Download
M tools/metrics/histograms/update_histogram_enum.py View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 37 (6 generated)
Marc Treib
Next part, with an open question. Please comment! https://codereview.chromium.org/1094873002/diff/1/extensions/common/permissions/api_permission.h File extensions/common/permissions/api_permission.h (right): https://codereview.chromium.org/1094873002/diff/1/extensions/common/permissions/api_permission.h#newcode47 extensions/common/permissions/api_permission.h:47: kNone, ...
5 years, 8 months ago (2015-04-17 13:09:33 UTC) #2
Marc Treib
Ping!
5 years, 8 months ago (2015-04-27 09:17:24 UTC) #3
Devlin
Just one question (why we record 2 and 3) https://codereview.chromium.org/1094873002/diff/1/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/1094873002/diff/1/chrome/browser/extensions/extension_service.cc#newcode1015 chrome/browser/extensions/extension_service.cc:1015: ...
5 years, 8 months ago (2015-04-27 17:58:03 UTC) #4
Marc Treib
https://codereview.chromium.org/1094873002/diff/1/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/1094873002/diff/1/chrome/browser/extensions/extension_service.cc#newcode1015 chrome/browser/extensions/extension_service.cc:1015: std::string histogram_name_base = On 2015/04/27 17:58:03, Devlin wrote: > ...
5 years, 7 months ago (2015-04-28 12:31:32 UTC) #5
Devlin
https://codereview.chromium.org/1094873002/diff/1/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/1094873002/diff/1/chrome/browser/extensions/extension_service.cc#newcode1015 chrome/browser/extensions/extension_service.cc:1015: std::string histogram_name_base = On 2015/04/28 12:31:32, Marc Treib wrote: ...
5 years, 7 months ago (2015-04-28 16:16:36 UTC) #6
Marc Treib
https://codereview.chromium.org/1094873002/diff/1/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/1094873002/diff/1/chrome/browser/extensions/extension_service.cc#newcode1015 chrome/browser/extensions/extension_service.cc:1015: std::string histogram_name_base = On 2015/04/28 16:16:36, Devlin wrote: > ...
5 years, 7 months ago (2015-04-29 11:24:02 UTC) #7
Devlin
lgtm, but you'll need a metrics owner. And might be worth letting kalman@ know that ...
5 years, 7 months ago (2015-04-29 15:42:24 UTC) #8
Marc Treib
Thanks for the review! Yup, the plan was to loop in kalman once you're satisfied, ...
5 years, 7 months ago (2015-04-30 10:40:52 UTC) #9
Marc Treib
+kalman: FYI, I've added "Extensions.Permissions_*3" histograms to replace the "..2" ones (which are still there ...
5 years, 7 months ago (2015-04-30 10:46:56 UTC) #11
not at google - send to devlin
thanks for the heads-up. just a couple of comments to make it easier for me ...
5 years, 7 months ago (2015-04-30 16:31:32 UTC) #12
Marc Treib
https://codereview.chromium.org/1094873002/diff/40001/chrome/browser/extensions/crx_installer.cc File chrome/browser/extensions/crx_installer.cc (right): https://codereview.chromium.org/1094873002/diff/40001/chrome/browser/extensions/crx_installer.cc#newcode669 chrome/browser/extensions/crx_installer.cc:669: std::string histogram_name = user_initiated ? "InstallCancel" On 2015/04/30 16:31:32, ...
5 years, 7 months ago (2015-05-04 09:15:58 UTC) #13
Marc Treib
+mpearson for tools/metrics/histograms. PTAL!
5 years, 7 months ago (2015-05-04 09:16:31 UTC) #15
Mark P
https://codereview.chromium.org/1094873002/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1094873002/diff/60001/tools/metrics/histograms/histograms.xml#newcode9453 tools/metrics/histograms/histograms.xml:9453: +<histogram name="Extensions.HasPermissions_AutoDisable3" enum="Boolean"> It would be nice to be ...
5 years, 7 months ago (2015-05-04 18:36:47 UTC) #16
Marc Treib
https://codereview.chromium.org/1094873002/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1094873002/diff/60001/tools/metrics/histograms/histograms.xml#newcode9453 tools/metrics/histograms/histograms.xml:9453: +<histogram name="Extensions.HasPermissions_AutoDisable3" enum="Boolean"> On 2015/05/04 18:36:47, Mark P wrote: ...
5 years, 7 months ago (2015-05-05 11:49:21 UTC) #17
Devlin
https://codereview.chromium.org/1094873002/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1094873002/diff/60001/tools/metrics/histograms/histograms.xml#newcode9453 tools/metrics/histograms/histograms.xml:9453: +<histogram name="Extensions.HasPermissions_AutoDisable3" enum="Boolean"> On 2015/05/05 11:49:21, Marc Treib wrote: ...
5 years, 7 months ago (2015-05-05 15:34:02 UTC) #18
Mark P
histograms.xml is almost ready https://codereview.chromium.org/1094873002/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1094873002/diff/60001/tools/metrics/histograms/histograms.xml#newcode9453 tools/metrics/histograms/histograms.xml:9453: +<histogram name="Extensions.HasPermissions_AutoDisable3" enum="Boolean"> On 2015/05/05 ...
5 years, 7 months ago (2015-05-06 21:08:52 UTC) #19
not at google - send to devlin
> Assuming Ben agrees with this understanding, Mmm I didn't look into this CL with ...
5 years, 7 months ago (2015-05-06 21:22:46 UTC) #20
Marc Treib
On 2015/05/06 21:22:46, kalman wrote: > > Assuming Ben agrees with this understanding, > > ...
5 years, 7 months ago (2015-05-06 21:26:38 UTC) #21
Marc Treib
https://codereview.chromium.org/1094873002/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1094873002/diff/60001/tools/metrics/histograms/histograms.xml#newcode9453 tools/metrics/histograms/histograms.xml:9453: +<histogram name="Extensions.HasPermissions_AutoDisable3" enum="Boolean"> On 2015/05/06 21:08:51, Mark P wrote: ...
5 years, 7 months ago (2015-05-07 00:59:30 UTC) #22
Mark P
histograms.xml lgtm once you fix the one remaining comment Thank you for your patience. Hopefully ...
5 years, 7 months ago (2015-05-07 17:29:45 UTC) #23
Marc Treib
https://codereview.chromium.org/1094873002/diff/100001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1094873002/diff/100001/tools/metrics/histograms/histograms.xml#newcode9569 tools/metrics/histograms/histograms.xml:9569: + WebStoreInstall. Contrary to the non-WebStore HasPermissions_Install3 On 2015/05/07 ...
5 years, 7 months ago (2015-05-07 18:45:02 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1094873002/140001
5 years, 7 months ago (2015-05-07 20:14:19 UTC) #27
Marc Treib
On 2015/05/07 17:29:45, Mark P wrote: > histograms.xml lgtm once you fix the one remaining ...
5 years, 7 months ago (2015-05-07 20:30:52 UTC) #28
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 7 months ago (2015-05-07 23:15:47 UTC) #29
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/2e0517f9e7eaf7901a00d8e475c4cf37c534f9e9 Cr-Commit-Position: refs/heads/master@{#328874}
5 years, 7 months ago (2015-05-07 23:16:44 UTC) #30
Alexei Svitkine (slow)
https://codereview.chromium.org/1094873002/diff/140001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1094873002/diff/140001/tools/metrics/histograms/histograms.xml#newcode9469 tools/metrics/histograms/histograms.xml:9469: +<histogram name="Extensions.HasPermissions_AutoDisable3" enum="Boolean"> Seems like these histograms are not ...
5 years, 7 months ago (2015-05-08 14:11:25 UTC) #32
grt (UTC plus 2)
On 2015/05/08 14:11:25, Alexei Svitkine wrote: > https://codereview.chromium.org/1094873002/diff/140001/tools/metrics/histograms/histograms.xml > File tools/metrics/histograms/histograms.xml (right): > > https://codereview.chromium.org/1094873002/diff/140001/tools/metrics/histograms/histograms.xml#newcode9469 ...
5 years, 7 months ago (2015-05-08 14:15:48 UTC) #33
Marc Treib
On 2015/05/08 14:15:48, grt wrote: > On 2015/05/08 14:11:25, Alexei Svitkine wrote: > > > ...
5 years, 7 months ago (2015-05-08 15:53:21 UTC) #34
Alexei Svitkine (slow)
Would you mind trying to see if you can repro the onupload check not firing? ...
5 years, 7 months ago (2015-05-08 16:19:30 UTC) #35
Marc Treib
I tried, and could NOT reproduce the missing onupload check. But looking at the histograms.xml ...
5 years, 7 months ago (2015-05-08 17:24:02 UTC) #36
Alexei Svitkine (slow)
5 years, 7 months ago (2015-05-08 17:41:53 UTC) #37
Message was sent while issue was closed.
Wow OK - thanks for tracking this down. Pretty disturbing this can happen -
but I guess rare enough that it's not worth worrying too much about.

On Fri, May 8, 2015 at 1:24 PM, Marc Treib <treib@chromium.org> wrote:

> I tried, and could NOT reproduce the missing onupload check.
> But looking at the histograms.xml diff in my CL, the histograms are not
> actually out-of-order. It looks like this was a mis-applied patch:
> E.g. Extensions.Permissions_AutoDisable3 should have been inserted after
Extensions.Permissions_AutoDisable2,
> but was actually inserted between Extensions.Permissions_AutoDisable and
> Extensions.Permissions_AutoDisable2.
> That was possible because the three lines of context in the diff weren't
> enough to uniquely identify the insertion point - AutoDisable and
> AutoDisable2 had the same owners and description.
>
> So, not sure what we could do to make sure this doesn't happen again, but
> it should be a fairly unlikely scenario anyway: There need to be histograms
> with identical descriptions next to each other, AND another CL needs to add
> a histogram while this one is in the CQ, so that the line numbers for the
> patch change.
>
> On Fri, May 8, 2015 at 9:19 AM Alexei Svitkine <asvitkine@chromium.org>
> wrote:
>
>> Would you mind trying to see if you can repro the onupload check not
>> firing? (don't actually commit, but try in another cl just when uploading)
>>
>> If we can figure out what actually went wrong, then we can make sure it
>> doesn't happen again.
>>
>> On Fri, May 8, 2015 at 11:53 AM, <treib@chromium.org> wrote:
>>
>>> On 2015/05/08 14:15:48, grt wrote:
>>>
>>>> On 2015/05/08 14:11:25, Alexei Svitkine wrote:
>>>> >
>>>>
>>>
>>>
>>>
https://codereview.chromium.org/1094873002/diff/140001/tools/metrics/histogra...
>>>
>>>> > File tools/metrics/histograms/histograms.xml (right):
>>>> >
>>>> >
>>>>
>>>
>>>
>>>
https://codereview.chromium.org/1094873002/diff/140001/tools/metrics/histogra...
>>>
>>>> > tools/metrics/histograms/histograms.xml:9469: +<histogram
>>>> > name="Extensions.HasPermissions_AutoDisable3" enum="Boolean">
>>>> > Seems like these histograms are not in alphabetical order now, which
>>>> should
>>>> have
>>>> > failed presubmits.
>>>> >
>>>> > 1. Could you fix? Since this fails validation, this is currently
>>>> blocking
>>>> > histogram updates on our dashboards.
>>>> > 2. Any idea why you didn't see presubmit warnings for this? Did you
>>>> bypass
>>>> them?
>>>> > Did you land it via some workflow that doesn't run presubmits? (Just
>>>> trying
>>>>
>>> to
>>>
>>>> > understand what happened so we can fix it for the future.)
>>>>
>>>
>>>  chrisha is fixing in https://codereview.chromium.org/1122863005/.
>>>>
>>>
>>>  did TBR bypass the presubmit checks in the CQ?
>>>>
>>>
>>> Woah, sorry about that! It's been fixed already though, right?
>>>
>>> I didn't explicitly bypass any presubmit checks. I guess the TBR might
>>> have
>>> bypassed the onsubmit check in the CQ, but shouldn't an onupload check
>>> also have
>>> fired? I have seen that one before, don't know why it wouldn't have
>>> fired here.
>>>
>>> https://codereview.chromium.org/1094873002/
>>>
>>
>>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698