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

Issue 23604068: Add "kiosk_only" manifest attribute for platform apps. (Closed)

Created:
7 years, 3 months ago by Tim Song
Modified:
7 years, 2 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, tfarina, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, Yoyo Zhou
Visibility:
Public.

Description

Add "kiosk_only" manifest attribute for platform apps. This top-level manifest attribute enforces that the app can only be installed and run in ChromeOS kiosk mode. BUG=284964 TEST=added new tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=225400

Patch Set 1 #

Patch Set 2 : Rename key to 'kiosk_only' #

Total comments: 6

Patch Set 3 : Update documentation. #

Total comments: 5

Patch Set 4 : Fix kioskOnly key name. #

Total comments: 4

Patch Set 5 : Change ManifestData to single KioskModeInfo #

Total comments: 7

Patch Set 6 : #

Total comments: 1

Patch Set 7 : nit #

Patch Set 8 : Removed .crx binary #

Unified diffs Side-by-side diffs Delta from patch set Stats (+385 lines, -153 lines) Patch
M apps/DEPS View 2 chunks +2 lines, -0 lines 0 comments Download
M apps/launcher.cc View 1 2 3 4 3 chunks +26 lines, -7 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/app_mode/startup_app_launcher.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/fake_user_manager.h View 1 2 3 4 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/fake_user_manager.cc View 1 2 3 4 4 chunks +19 lines, -7 lines 0 comments Download
M chrome/browser/extensions/api/system_display/system_display_api.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/crx_installer.cc View 1 2 3 4 3 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/extensions/crx_installer_browsertest.cc View 1 2 3 4 2 chunks +21 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extension_basic_info.cc View 1 2 3 4 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/api/_manifest_features.json View 1 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/common/extensions/chrome_manifest_handlers.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/docs/templates/articles/manifest/kiosk_enabled.html View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/templates/json/manifest.json View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download
D chrome/common/extensions/manifest_handlers/kiosk_enabled_info.h View 1 chunk +0 lines, -42 lines 0 comments Download
D chrome/common/extensions/manifest_handlers/kiosk_enabled_info.cc View 1 chunk +0 lines, -60 lines 0 comments Download
A chrome/common/extensions/manifest_handlers/kiosk_mode_info.h View 1 2 3 4 1 chunk +55 lines, -0 lines 0 comments Download
A chrome/common/extensions/manifest_handlers/kiosk_mode_info.cc View 1 2 3 4 1 chunk +89 lines, -0 lines 0 comments Download
M chrome/common/extensions/manifest_tests/extension_manifests_kiosk_unittest.cc View 1 2 3 4 1 chunk +57 lines, -15 lines 0 comments Download
A chrome/test/data/extensions/kiosk/kiosk_only.pem View 1 1 chunk +15 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/kiosk/kiosk_only/background.js View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/kiosk/kiosk_only/manifest.json View 1 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/manifest_tests/kiosk_only_extension.json View 1 1 chunk +6 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/manifest_tests/kiosk_only_hosted_app.json View 1 2 chunks +3 lines, -2 lines 0 comments Download
A + chrome/test/data/extensions/manifest_tests/kiosk_only_invalid.json View 1 1 chunk +3 lines, -2 lines 0 comments Download
A + chrome/test/data/extensions/manifest_tests/kiosk_only_not_enabled.json View 1 1 chunk +2 lines, -2 lines 0 comments Download
A + chrome/test/data/extensions/manifest_tests/kiosk_only_packaged_app.json View 1 1 chunk +3 lines, -2 lines 0 comments Download
A + chrome/test/data/extensions/manifest_tests/kiosk_only_platform_app.json View 1 1 chunk +3 lines, -2 lines 0 comments Download
M extensions/common/manifest_constants.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M extensions/common/manifest_constants.cc View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Tim Song
Please take a look.
7 years, 3 months ago (2013-09-24 01:34:58 UTC) #1
not at google - send to devlin
Main comment is in kiosk_mode_info; I think it could be a lot simpler. Also, adding ...
7 years, 3 months ago (2013-09-24 18:35:16 UTC) #2
Tim Song
+xiyuan for chromeos changes. https://codereview.chromium.org/23604068/diff/4001/chrome/browser/ui/webui/extensions/extension_basic_info.cc File chrome/browser/ui/webui/extensions/extension_basic_info.cc (right): https://codereview.chromium.org/23604068/diff/4001/chrome/browser/ui/webui/extensions/extension_basic_info.cc#newcode22 chrome/browser/ui/webui/extensions/extension_basic_info.cc:22: const char kKioskOnlyKey[] = "kioskRequired"; ...
7 years, 3 months ago (2013-09-24 18:50:00 UTC) #3
not at google - send to devlin
https://codereview.chromium.org/23604068/diff/4001/chrome/common/extensions/manifest_handlers/kiosk_mode_info.h File chrome/common/extensions/manifest_handlers/kiosk_mode_info.h (right): https://codereview.chromium.org/23604068/diff/4001/chrome/common/extensions/manifest_handlers/kiosk_mode_info.h#newcode26 chrome/common/extensions/manifest_handlers/kiosk_mode_info.h:26: On 2013/09/24 18:50:01, Tim Song wrote: > On 2013/09/24 ...
7 years, 3 months ago (2013-09-24 18:55:17 UTC) #4
Tim Song
https://codereview.chromium.org/23604068/diff/4001/chrome/common/extensions/manifest_handlers/kiosk_mode_info.h File chrome/common/extensions/manifest_handlers/kiosk_mode_info.h (right): https://codereview.chromium.org/23604068/diff/4001/chrome/common/extensions/manifest_handlers/kiosk_mode_info.h#newcode26 chrome/common/extensions/manifest_handlers/kiosk_mode_info.h:26: On 2013/09/24 18:55:17, kalman wrote: > On 2013/09/24 18:50:01, ...
7 years, 3 months ago (2013-09-24 19:09:06 UTC) #5
not at google - send to devlin
thanks for the enum thing, ping me when you want me to take another look. ...
7 years, 3 months ago (2013-09-24 19:22:25 UTC) #6
Tim Song
On 2013/09/24 19:22:25, kalman wrote: > thanks for the enum thing, ping me when you ...
7 years, 3 months ago (2013-09-24 20:15:17 UTC) #7
not at google - send to devlin
> > Kiosk apps set via policy basically works the same as through consumer mode. ...
7 years, 3 months ago (2013-09-24 20:16:30 UTC) #8
xiyuan
chrome/browser/chromeos/* LGTM https://codereview.chromium.org/23604068/diff/15001/chrome/browser/chromeos/login/fake_user_manager.h File chrome/browser/chromeos/login/fake_user_manager.h (right): https://codereview.chromium.org/23604068/diff/15001/chrome/browser/chromeos/login/fake_user_manager.h#newcode31 chrome/browser/chromeos/login/fake_user_manager.h:31: void UserLoggedIn(const std::string& email); I have added ...
7 years, 3 months ago (2013-09-24 20:20:39 UTC) #9
Tim Song
I changed kiosk_mode_info.* to use a single struct and enum as suggested. Please take another ...
7 years, 3 months ago (2013-09-24 21:07:25 UTC) #10
not at google - send to devlin
lgtm https://codereview.chromium.org/23604068/diff/32001/chrome/common/extensions/docs/templates/articles/manifest/kiosk_only.html File chrome/common/extensions/docs/templates/articles/manifest/kiosk_only.html (right): https://codereview.chromium.org/23604068/diff/32001/chrome/common/extensions/docs/templates/articles/manifest/kiosk_only.html#newcode5 chrome/common/extensions/docs/templates/articles/manifest/kiosk_only.html:5: kiosk mode. This field is only valid if ...
7 years, 3 months ago (2013-09-24 21:57:38 UTC) #11
Tim Song
https://codereview.chromium.org/23604068/diff/32001/chrome/common/extensions/docs/templates/articles/manifest/kiosk_only.html File chrome/common/extensions/docs/templates/articles/manifest/kiosk_only.html (right): https://codereview.chromium.org/23604068/diff/32001/chrome/common/extensions/docs/templates/articles/manifest/kiosk_only.html#newcode5 chrome/common/extensions/docs/templates/articles/manifest/kiosk_only.html:5: kiosk mode. This field is only valid if the ...
7 years, 3 months ago (2013-09-24 22:38:25 UTC) #12
not at google - send to devlin
lgtm https://codereview.chromium.org/23604068/diff/40001/chrome/common/extensions/docs/templates/articles/manifest/kiosk_enabled.html File chrome/common/extensions/docs/templates/articles/manifest/kiosk_enabled.html (right): https://codereview.chromium.org/23604068/diff/40001/chrome/common/extensions/docs/templates/articles/manifest/kiosk_enabled.html#newcode14 chrome/common/extensions/docs/templates/articles/manifest/kiosk_enabled.html:14: kiosk mode. This field is only valid if ...
7 years, 3 months ago (2013-09-24 23:03:07 UTC) #13
benwells
apps/launcher.cc and apps/DEPS lgtm
7 years, 3 months ago (2013-09-25 01:55:42 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tengs@chromium.org/23604068/56001
7 years, 2 months ago (2013-09-25 22:29:48 UTC) #15
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=81487
7 years, 2 months ago (2013-09-26 06:02:00 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tengs@chromium.org/23604068/56001
7 years, 2 months ago (2013-09-26 07:13:19 UTC) #17
commit-bot: I haz the power
7 years, 2 months ago (2013-09-26 08:42:36 UTC) #18
Message was sent while issue was closed.
Change committed as 225400

Powered by Google App Engine
This is Rietveld 408576698