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

Issue 2952353002: Extensions: Pass current channel and feature session type to extension unpack utility process. (Closed)

Created:
3 years, 6 months ago by karandeepb
Modified:
3 years, 5 months ago
Reviewers:
dcheng1, Devlin, dcheng, estark
CC:
chromium-reviews, extensions-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, chromium-apps-reviews_chromium.org, darin (slow to review)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Extensions: Pass current channel and feature session type to extension unpack utility process. The extension unpack utility process service uses Extension::Create which involves availability checks for extension features. However we don't currently set the current channel and feature session type in the utility process. This CL fixes the issue by passing the current channel and feature session type to the extension unpack utility process. BUG=734854 Review-Url: https://codereview.chromium.org/2952353002 Cr-Commit-Position: refs/heads/master@{#483282} Committed: https://chromium.googlesource.com/chromium/src/+/456585e962d667fdf18f17d69e3115dfac1d8e8b

Patch Set 1 #

Patch Set 2 : Nit. #

Total comments: 5

Patch Set 3 : Use a single file to hold enum traits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -37 lines) Patch
M extensions/browser/sandboxed_unpacker.cc View 2 chunks +4 lines, -1 line 0 comments Download
M extensions/common/BUILD.gn View 1 2 2 chunks +1 line, -1 line 0 comments Download
A + extensions/common/common_param_traits.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M extensions/common/extension_message_generator.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M extensions/common/extension_messages.h View 1 2 2 chunks +1 line, -5 lines 0 comments Download
M extensions/common/extension_messages.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M extensions/common/extension_unpacker.mojom View 2 chunks +11 lines, -1 line 0 comments Download
A extensions/common/extension_unpacker.typemap View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
D extensions/common/manifest_location.typemap View 1 chunk +0 lines, -12 lines 0 comments Download
D extensions/common/manifest_location_param_traits.h View 1 2 1 chunk +0 lines, -13 lines 0 comments Download
M extensions/common/typemaps.gni View 1 chunk +1 line, -1 line 0 comments Download
M extensions/utility/utility_handler.cc View 3 chunks +9 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 32 (19 generated)
karandeepb
PTAL Devlin. I am not sure if there's a neat way to test this, since ...
3 years, 6 months ago (2017-06-23 03:29:57 UTC) #7
Devlin
I think this lgtm, but you'll need an IPC reviewer as well.
3 years, 6 months ago (2017-06-24 00:46:42 UTC) #8
karandeepb
PTAL dcheng@ for IPC security review for changes to *traits file.
3 years, 6 months ago (2017-06-24 02:32:29 UTC) #10
dcheng
the ipc changes look fine (with one comment) however, can we add a test for ...
3 years, 6 months ago (2017-06-24 03:30:53 UTC) #11
karandeepb
I wasn't able to think of a clean way to test this. As I commented ...
3 years, 5 months ago (2017-06-26 21:51:55 UTC) #12
karandeepb
estark@: Since dcheng@ is OOO, can you do the IPC security review. Thanks.
3 years, 5 months ago (2017-06-26 21:58:37 UTC) #14
dcheng1
So this was manually caught in testing, but didn't have an observable effect since the ...
3 years, 5 months ago (2017-06-26 22:09:49 UTC) #16
karandeepb
Yeah so I was prototyping something (which I'll try to land separately in some time), ...
3 years, 5 months ago (2017-06-26 22:16:44 UTC) #17
dcheng1
On 2017/06/26 22:16:44, karandeepb wrote: > Yeah so I was prototyping something (which I'll try ...
3 years, 5 months ago (2017-06-26 23:07:35 UTC) #18
karandeepb
PTAL dcheng@. On 2017/06/26 23:07:35, dcheng1 wrote: > On 2017/06/26 22:16:44, karandeepb wrote: > > ...
3 years, 5 months ago (2017-06-27 00:35:18 UTC) #23
dcheng
lgtm
3 years, 5 months ago (2017-06-28 03:29:35 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2952353002/80001
3 years, 5 months ago (2017-06-29 01:52:29 UTC) #29
commit-bot: I haz the power
3 years, 5 months ago (2017-06-29 03:42:11 UTC) #32
Message was sent while issue was closed.
Committed patchset #3 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/456585e962d667fdf18f17d69e31...

Powered by Google App Engine
This is Rietveld 408576698