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

Issue 2255613003: Introduce session type parameter to extension features (Closed)

Created:
4 years, 4 months ago by tbarzic
Modified:
4 years, 3 months ago
Reviewers:
rkc, xiyuan, Devlin
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, 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

Introduce session type parameter to extension features This adds session type to extension features grammar. The session type refers to the type of user active in the session in which an extension is running. The parameter will enable making a feature available depending on type of the session in which the extension/app is running. Feature session types are declared as list of individual session types in which a feature is available (undefined list means no restrictions). Currently, values supported for session type are as follows: * 'kiosk' - kiosk app session * 'regular' - non-kiosk user session The list of supported values is expected to be expanded in future. Depends on https://codereview.chromium.org/2241203003/ for plumbing of current session type to feature availability checks BUG=606417 Committed: https://crrev.com/64bf38deace6fc500ab416cae16f9d3ea0629411 Cr-Commit-Position: refs/heads/master@{#418938}

Patch Set 1 #

Patch Set 2 : Introduce session type parameter to extension features #

Total comments: 1

Patch Set 3 : Introduce session type parameter to extension features #

Patch Set 4 : Introduce session type parameter to extension features #

Patch Set 5 : Introduce session type parameter to extension features #

Patch Set 6 : Introduce session type parameter to extension features #

Total comments: 15

Patch Set 7 : . #

Patch Set 8 : Introduce session type parameter to extension features #

Patch Set 9 : . #

Patch Set 10 : Introduce session type parameter to extension features #

Total comments: 17

Patch Set 11 : Introduce session type parameter to extension features #

Patch Set 12 : Introduce session type parameter to extension features #

Total comments: 10

Patch Set 13 : feedback #

Patch Set 14 : . #

Patch Set 15 : Introduce session type parameter to extension features #

Patch Set 16 : win build warning #

Patch Set 17 : Introduce session type parameter to extension features #

Total comments: 4

Patch Set 18 : Introduce session type parameter to extension features #

Total comments: 6

Patch Set 19 : . #

Patch Set 20 : Introduce session type parameter to extension features #

Unified diffs Side-by-side diffs Delta from patch set Stats (+262 lines, -14 lines) Patch
M chrome/common/extensions/api/_features.md View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/common_extension_api_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +45 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/extension_api_unittest/api_features.json View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +15 lines, -0 lines 0 comments Download
M extensions/common/features/feature.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/features/simple_feature.h View 1 2 3 4 5 6 7 8 9 10 6 chunks +8 lines, -1 line 0 comments Download
M extensions/common/features/simple_feature.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 10 chunks +65 lines, -13 lines 0 comments Download
M extensions/common/features/simple_feature_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +107 lines, -0 lines 0 comments Download
M tools/json_schema_compiler/feature_compiler.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -0 lines 0 comments Download
M tools/json_schema_compiler/feature_compiler_test.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 55 (34 generated)
tbarzic
4 years, 4 months ago (2016-08-17 00:57:02 UTC) #4
tbarzic
4 years, 4 months ago (2016-08-17 00:58:11 UTC) #6
Devlin
Which of these CLs comes first? Can you add one as a dependent of the ...
4 years, 4 months ago (2016-08-17 16:51:07 UTC) #7
tbarzic
On 2016/08/17 16:51:07, Devlin wrote: > Which of these CLs comes first? > > Can ...
4 years, 4 months ago (2016-08-17 16:54:13 UTC) #8
tbarzic
4 years, 4 months ago (2016-08-18 01:06:01 UTC) #11
rkc
lgtm just nits https://codereview.chromium.org/2255613003/diff/100001/chrome/common/extensions/api/common_extension_api_unittest.cc File chrome/common/extensions/api/common_extension_api_unittest.cc (right): https://codereview.chromium.org/2255613003/diff/100001/chrome/common/extensions/api/common_extension_api_unittest.cc#newcode316 chrome/common/extensions/api/common_extension_api_unittest.cc:316: for (size_t i = 0; i ...
4 years, 4 months ago (2016-08-18 20:35:28 UTC) #20
xiyuan
lgtm https://codereview.chromium.org/2255613003/diff/100001/chrome/common/extensions/api/common_extension_api_unittest.cc File chrome/common/extensions/api/common_extension_api_unittest.cc (right): https://codereview.chromium.org/2255613003/diff/100001/chrome/common/extensions/api/common_extension_api_unittest.cc#newcode301 chrome/common/extensions/api/common_extension_api_unittest.cc:301: struct { nit: const https://codereview.chromium.org/2255613003/diff/100001/chrome/common/extensions/api/common_extension_api_unittest.cc#newcode305 chrome/common/extensions/api/common_extension_api_unittest.cc:305: } test_data[]{{"kiosk_only", ...
4 years, 4 months ago (2016-08-18 21:24:00 UTC) #21
tbarzic
https://codereview.chromium.org/2255613003/diff/100001/chrome/common/extensions/api/common_extension_api_unittest.cc File chrome/common/extensions/api/common_extension_api_unittest.cc (right): https://codereview.chromium.org/2255613003/diff/100001/chrome/common/extensions/api/common_extension_api_unittest.cc#newcode301 chrome/common/extensions/api/common_extension_api_unittest.cc:301: struct { On 2016/08/18 at 21:24:00, xiyuan wrote: > ...
4 years, 4 months ago (2016-08-18 22:18:56 UTC) #22
Devlin
Also please update the documentation at c/c/extensions/api/_features.md. https://codereview.chromium.org/2255613003/diff/180001/chrome/common/extensions/api/common_extension_api_unittest.cc File chrome/common/extensions/api/common_extension_api_unittest.cc (right): https://codereview.chromium.org/2255613003/diff/180001/chrome/common/extensions/api/common_extension_api_unittest.cc#newcode320 chrome/common/extensions/api/common_extension_api_unittest.cc:320: {"invalid_session_types", false, ...
4 years, 4 months ago (2016-08-23 20:49:06 UTC) #23
tbarzic
https://codereview.chromium.org/2255613003/diff/180001/chrome/common/extensions/api/common_extension_api_unittest.cc File chrome/common/extensions/api/common_extension_api_unittest.cc (right): https://codereview.chromium.org/2255613003/diff/180001/chrome/common/extensions/api/common_extension_api_unittest.cc#newcode320 chrome/common/extensions/api/common_extension_api_unittest.cc:320: {"invalid_session_types", false, FeatureSessionType::KIOSK}, On 2016/08/23 at 20:49:06, Devlin wrote: ...
4 years, 3 months ago (2016-09-08 18:48:55 UTC) #24
Devlin
https://codereview.chromium.org/2255613003/diff/180001/extensions/common/features/simple_feature.cc File extensions/common/features/simple_feature.cc (right): https://codereview.chromium.org/2255613003/diff/180001/extensions/common/features/simple_feature.cc#newcode571 extensions/common/features/simple_feature.cc:571: "'%s' is not allowed in %s session", name().c_str(), On ...
4 years, 3 months ago (2016-09-12 22:33:08 UTC) #25
tbarzic
https://codereview.chromium.org/2255613003/diff/180001/extensions/common/features/simple_feature.cc File extensions/common/features/simple_feature.cc (right): https://codereview.chromium.org/2255613003/diff/180001/extensions/common/features/simple_feature.cc#newcode571 extensions/common/features/simple_feature.cc:571: "'%s' is not allowed in %s session", name().c_str(), On ...
4 years, 3 months ago (2016-09-12 23:05:10 UTC) #26
Devlin
just a few last nits https://codereview.chromium.org/2255613003/diff/220001/extensions/common/features/simple_feature_unittest.cc File extensions/common/features/simple_feature_unittest.cc (right): https://codereview.chromium.org/2255613003/diff/220001/extensions/common/features/simple_feature_unittest.cc#newcode410 extensions/common/features/simple_feature_unittest.cc:410: TEST_F(SimpleFeatureTest, SessionType) { On ...
4 years, 3 months ago (2016-09-13 16:46:23 UTC) #43
tbarzic
https://codereview.chromium.org/2255613003/diff/220001/extensions/common/features/simple_feature_unittest.cc File extensions/common/features/simple_feature_unittest.cc (right): https://codereview.chromium.org/2255613003/diff/220001/extensions/common/features/simple_feature_unittest.cc#newcode410 extensions/common/features/simple_feature_unittest.cc:410: TEST_F(SimpleFeatureTest, SessionType) { On 2016/09/13 16:46:23, Devlin wrote: > ...
4 years, 3 months ago (2016-09-13 17:23:49 UTC) #44
Devlin
lgtm https://codereview.chromium.org/2255613003/diff/340001/chrome/common/extensions/api/_features.md File chrome/common/extensions/api/_features.md (right): https://codereview.chromium.org/2255613003/diff/340001/chrome/common/extensions/api/_features.md#newcode261 chrome/common/extensions/api/_features.md:261: are only supported on Chrome OS - feature ...
4 years, 3 months ago (2016-09-13 17:37:45 UTC) #45
tbarzic
https://codereview.chromium.org/2255613003/diff/340001/chrome/common/extensions/api/_features.md File chrome/common/extensions/api/_features.md (right): https://codereview.chromium.org/2255613003/diff/340001/chrome/common/extensions/api/_features.md#newcode261 chrome/common/extensions/api/_features.md:261: are only supported on Chrome OS - feature restricted ...
4 years, 3 months ago (2016-09-13 17:55:12 UTC) #46
Devlin
https://codereview.chromium.org/2255613003/diff/340001/chrome/common/extensions/api/_features.md File chrome/common/extensions/api/_features.md (right): https://codereview.chromium.org/2255613003/diff/340001/chrome/common/extensions/api/_features.md#newcode263 chrome/common/extensions/api/_features.md:263: session types imply that a user is logged into ...
4 years, 3 months ago (2016-09-13 18:13:50 UTC) #47
tbarzic
https://codereview.chromium.org/2255613003/diff/340001/chrome/common/extensions/api/_features.md File chrome/common/extensions/api/_features.md (right): https://codereview.chromium.org/2255613003/diff/340001/chrome/common/extensions/api/_features.md#newcode263 chrome/common/extensions/api/_features.md:263: session types imply that a user is logged into ...
4 years, 3 months ago (2016-09-13 18:25:40 UTC) #48
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/2255613003/380001
4 years, 3 months ago (2016-09-15 18:56:33 UTC) #51
commit-bot: I haz the power
Committed patchset #20 (id:380001)
4 years, 3 months ago (2016-09-15 19:58:32 UTC) #53
commit-bot: I haz the power
4 years, 3 months ago (2016-09-15 20:01:53 UTC) #55
Message was sent while issue was closed.
Patchset 20 (id:??) landed as
https://crrev.com/64bf38deace6fc500ab416cae16f9d3ea0629411
Cr-Commit-Position: refs/heads/master@{#418938}

Powered by Google App Engine
This is Rietveld 408576698