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

Issue 510943003: Register granting of previously withheld permissions as a permissions (Closed)

Created:
6 years, 3 months ago by gpdavis
Modified:
6 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Register granting of previously withheld permissions as a permissions increase BUG=408257 Committed: https://crrev.com/48f08c4fbc8ea99059ceee676be2327b01fdd080 Cr-Commit-Position: refs/heads/master@{#295578}

Patch Set 1 #

Patch Set 2 : Add initialization calls before granting permissions #

Total comments: 3

Patch Set 3 : Moved Init calls #

Patch Set 4 : Resolve threading issues, add crx installer browser test #

Total comments: 9

Patch Set 5 : Move init call, test updates #

Total comments: 4

Patch Set 6 : Test updates #

Patch Set 7 : Readded init call for unpacked installer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -15 lines) Patch
M chrome/browser/extensions/crx_installer.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/crx_installer_browsertest.cc View 1 2 3 4 5 9 chunks +57 lines, -15 lines 0 comments Download
M chrome/browser/extensions/unpacked_installer.cc View 1 2 3 6 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (3 generated)
gpdavis
gpdavis.chromium@gmail.com changed reviewers: + kalman@chromium.org
6 years, 3 months ago (2014-08-27 20:27:24 UTC) #1
gpdavis
Here are my findings. Hope this isn't too much information :) With the user consent ...
6 years, 3 months ago (2014-08-27 20:27:24 UTC) #2
not at google - send to devlin
That's a lotta logging :) Ok, sounds like we need to withhold before granting.
6 years, 3 months ago (2014-08-27 20:32:00 UTC) #3
gpdavis
On 2014/08/27 20:32:00, kalman wrote: > That's a lotta logging :) > > Ok, sounds ...
6 years, 3 months ago (2014-08-27 21:30:03 UTC) #4
not at google - send to devlin
https://codereview.chromium.org/510943003/diff/20001/chrome/browser/extensions/crx_installer.cc File chrome/browser/extensions/crx_installer.cc (right): https://codereview.chromium.org/510943003/diff/20001/chrome/browser/extensions/crx_installer.cc#newcode806 chrome/browser/extensions/crx_installer.cc:806: perms_updater.InitializePermissions(extension()); Can we do this when extension() gets created? ...
6 years, 3 months ago (2014-08-28 03:18:46 UTC) #5
gpdavis
https://codereview.chromium.org/510943003/diff/20001/chrome/browser/extensions/crx_installer.cc File chrome/browser/extensions/crx_installer.cc (right): https://codereview.chromium.org/510943003/diff/20001/chrome/browser/extensions/crx_installer.cc#newcode806 chrome/browser/extensions/crx_installer.cc:806: perms_updater.InitializePermissions(extension()); On 2014/08/28 03:18:46, kalman wrote: > Can we ...
6 years, 3 months ago (2014-08-28 19:02:39 UTC) #6
not at google - send to devlin
OnUnpackSuccess sounds right.
6 years, 3 months ago (2014-08-28 19:23:53 UTC) #7
not at google - send to devlin
6 years, 3 months ago (2014-08-29 18:11:38 UTC) #9
Devlin
Looks pretty good overall, but we need a couple of tests for this.
6 years, 3 months ago (2014-09-02 20:48:28 UTC) #10
gpdavis
On 2014/09/02 20:48:28, Devlin wrote: > Looks pretty good overall, but we need a couple ...
6 years, 3 months ago (2014-09-05 01:56:56 UTC) #11
Devlin
On 2014/09/05 01:56:56, gpdavis wrote: > On 2014/09/02 20:48:28, Devlin wrote: > > Looks pretty ...
6 years, 3 months ago (2014-09-08 16:54:16 UTC) #12
gpdavis
On 2014/09/08 16:54:16, Devlin wrote: > On 2014/09/05 01:56:56, gpdavis wrote: > > On 2014/09/02 ...
6 years, 3 months ago (2014-09-08 23:00:24 UTC) #14
Devlin
https://codereview.chromium.org/510943003/diff/80001/chrome/browser/extensions/crx_installer.cc File chrome/browser/extensions/crx_installer.cc (right): https://codereview.chromium.org/510943003/diff/80001/chrome/browser/extensions/crx_installer.cc#newcode465 chrome/browser/extensions/crx_installer.cc:465: base::Bind(&CrxInstaller::InitializeExtensionPermissions, this))) Ew. We already bounce around a ton ...
6 years, 3 months ago (2014-09-09 16:04:26 UTC) #15
gpdavis
https://codereview.chromium.org/510943003/diff/80001/chrome/browser/extensions/crx_installer.cc File chrome/browser/extensions/crx_installer.cc (right): https://codereview.chromium.org/510943003/diff/80001/chrome/browser/extensions/crx_installer.cc#newcode465 chrome/browser/extensions/crx_installer.cc:465: base::Bind(&CrxInstaller::InitializeExtensionPermissions, this))) On 2014/09/09 16:04:26, Devlin wrote: > Ew. ...
6 years, 3 months ago (2014-09-09 17:48:53 UTC) #16
Devlin
https://codereview.chromium.org/510943003/diff/80001/chrome/browser/extensions/crx_installer.cc File chrome/browser/extensions/crx_installer.cc (right): https://codereview.chromium.org/510943003/diff/80001/chrome/browser/extensions/crx_installer.cc#newcode465 chrome/browser/extensions/crx_installer.cc:465: base::Bind(&CrxInstaller::InitializeExtensionPermissions, this))) On 2014/09/09 17:48:53, gpdavis wrote: > On ...
6 years, 3 months ago (2014-09-09 17:57:45 UTC) #17
gpdavis
On 2014/09/09 17:57:45, Devlin wrote: > https://codereview.chromium.org/510943003/diff/80001/chrome/browser/extensions/crx_installer.cc > File chrome/browser/extensions/crx_installer.cc (right): > > https://codereview.chromium.org/510943003/diff/80001/chrome/browser/extensions/crx_installer.cc#newcode465 > ...
6 years, 3 months ago (2014-09-09 18:54:48 UTC) #18
Devlin
The goal is to get the Extension disabled in the normal flow as a Permissions ...
6 years, 3 months ago (2014-09-09 19:09:07 UTC) #19
gpdavis
On 2014/09/09 19:09:07, Devlin wrote: > The goal is to get the Extension disabled in ...
6 years, 3 months ago (2014-09-09 19:18:24 UTC) #20
Devlin
On 2014/09/09 19:18:24, gpdavis wrote: > On 2014/09/09 19:09:07, Devlin wrote: > > The goal ...
6 years, 3 months ago (2014-09-09 19:34:01 UTC) #21
gpdavis
On 2014/09/09 19:34:01, Devlin wrote: > On 2014/09/09 19:18:24, gpdavis wrote: > > On 2014/09/09 ...
6 years, 3 months ago (2014-09-09 23:40:41 UTC) #22
Devlin
https://codereview.chromium.org/510943003/diff/100001/chrome/browser/extensions/crx_installer_browsertest.cc File chrome/browser/extensions/crx_installer_browsertest.cc (right): https://codereview.chromium.org/510943003/diff/100001/chrome/browser/extensions/crx_installer_browsertest.cc#newcode591 chrome/browser/extensions/crx_installer_browsertest.cc:591: const extensions::Extension* extension = InstallExtension(crx_path, 1); nit: no prefix. ...
6 years, 3 months ago (2014-09-10 21:52:02 UTC) #23
Devlin
Re unpacked extensions - it's fine for an unpacked extension to increase its permissions, so ...
6 years, 3 months ago (2014-09-10 21:52:32 UTC) #24
gpdavis
Re: unpacked extensions, Sounds good; it seemed like it wouldn't be an issue as I ...
6 years, 3 months ago (2014-09-11 00:51:02 UTC) #25
gpdavis
Changed test to check for the things you outlined in the last set of comments. ...
6 years, 3 months ago (2014-09-17 21:51:42 UTC) #26
Devlin
On 2014/09/17 21:51:42, gpdavis wrote: > Changed test to check for the things you outlined ...
6 years, 3 months ago (2014-09-18 21:00:24 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/510943003/140001
6 years, 3 months ago (2014-09-18 21:11:34 UTC) #29
commit-bot: I haz the power
Committed patchset #7 (id:140001) as 5b324dfa5c3d2bbd63dbd40c0f7555df1e05064b
6 years, 3 months ago (2014-09-18 22:09:43 UTC) #30
commit-bot: I haz the power
6 years, 3 months ago (2014-09-18 22:10:29 UTC) #31
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/48f08c4fbc8ea99059ceee676be2327b01fdd080
Cr-Commit-Position: refs/heads/master@{#295578}

Powered by Google App Engine
This is Rietveld 408576698