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

Issue 2639033002: Restore auto-launched state on kiosk restart within session (Closed)

Created:
3 years, 11 months ago by tbarzic
Modified:
3 years, 10 months ago
Reviewers:
xiyuan
CC:
chromium-reviews, alemate+watch_chromium.org, achuith+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Restore auto-launched state on kiosk restart within session When kiosk app is restarted within a kiosk session - e.g. due to crash, app's auto-launched state has to be preserved. Previously auto-launched state was kept only in memory - if kiosk was restarted, the information would get lost. This CL is attempt to fix the problem by preserving auto-launched state by setting a user session scoped flag that indicates that the kiosk app is auto-launched (newly introduced app-auto-launched). The flag will be scoped to current used session, and will be passed to Chrome in a case Chrome restarts withing the user session. On restart, the flag can be used to deduce whether the kiosk app should be considered auto-launched or not. Note that when setting the auto-launched flag, it's important to consider current set of policy defined flags - they should be preserved when auto-launched flag is added to set of user flags. BUG=677340 Review-Url: https://codereview.chromium.org/2639033002 Cr-Original-Commit-Position: refs/heads/master@{#446166} Committed: https://chromium.googlesource.com/chromium/src/+/663f7dfaa3b96b353ade5b9ce6b7616e51ba73bb Review-Url: https://codereview.chromium.org/2639033002 Cr-Commit-Position: refs/heads/master@{#446427} Committed: https://chromium.googlesource.com/chromium/src/+/c6b3e0d3813eb1bc13bbaba9e5d19054890606c7

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 8

Patch Set 6 : . #

Total comments: 1

Patch Set 7 : Attempt No 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+588 lines, -199 lines) Patch
M chrome/browser/chromeos/app_mode/kiosk_app_manager.h View 1 2 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/app_mode/kiosk_app_manager.cc View 1 2 3 4 5 4 chunks +70 lines, -0 lines 0 comments Download
D chrome/browser/chromeos/app_mode/kiosk_crash_restore_browsertest.cc View 1 1 chunk +0 lines, -194 lines 0 comments Download
A chrome/browser/chromeos/login/auto_launched_kiosk_browsertest.cc View 1 2 3 4 5 6 1 chunk +482 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/session/user_session_manager.cc View 1 2 3 4 5 1 chunk +8 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/users/chrome_user_manager_impl.cc View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 2 chunks +1 line, -1 line 0 comments Download
M chromeos/chromeos_switches.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/chromeos_switches.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (17 generated)
tbarzic
Let me know what you think - the test should also verify that kiosk session ...
3 years, 11 months ago (2017-01-25 03:11:26 UTC) #6
xiyuan
lgtm Just nits, https://codereview.chromium.org/2639033002/diff/80001/chrome/browser/chromeos/app_mode/kiosk_app_manager.cc File chrome/browser/chromeos/app_mode/kiosk_app_manager.cc (right): https://codereview.chromium.org/2639033002/diff/80001/chrome/browser/chromeos/app_mode/kiosk_app_manager.cc#newcode277 chrome/browser/chromeos/app_mode/kiosk_app_manager.cc:277: bool autolaunched = app_id == currently_auto_launched_with_zero_delay_app_; ...
3 years, 11 months ago (2017-01-25 21:06:44 UTC) #7
tbarzic
https://codereview.chromium.org/2639033002/diff/80001/chrome/browser/chromeos/app_mode/kiosk_app_manager.cc File chrome/browser/chromeos/app_mode/kiosk_app_manager.cc (right): https://codereview.chromium.org/2639033002/diff/80001/chrome/browser/chromeos/app_mode/kiosk_app_manager.cc#newcode277 chrome/browser/chromeos/app_mode/kiosk_app_manager.cc:277: bool autolaunched = app_id == currently_auto_launched_with_zero_delay_app_; On 2017/01/25 21:06:43, ...
3 years, 11 months ago (2017-01-25 21:33:43 UTC) #9
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/2639033002/100001
3 years, 11 months ago (2017-01-25 23:44:06 UTC) #15
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://chromium.googlesource.com/chromium/src/+/663f7dfaa3b96b353ade5b9ce6b7616e51ba73bb
3 years, 11 months ago (2017-01-25 23:51:38 UTC) #18
kjellander_chromium
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/2658773002/ by kjellander@chromium.org. ...
3 years, 11 months ago (2017-01-26 05:44:31 UTC) #19
tbarzic
xiyuan, can you have a look at the revised version? https://codereview.chromium.org/2639033002/diff/100001/chrome/browser/chromeos/login/auto_launched_kiosk_browsertest.cc File chrome/browser/chromeos/login/auto_launched_kiosk_browsertest.cc (right): https://codereview.chromium.org/2639033002/diff/100001/chrome/browser/chromeos/login/auto_launched_kiosk_browsertest.cc#newcode351 ...
3 years, 11 months ago (2017-01-26 18:19:42 UTC) #21
xiyuan
still lgtm
3 years, 11 months ago (2017-01-26 18:22:31 UTC) #22
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/2639033002/120001
3 years, 11 months ago (2017-01-26 18:45:10 UTC) #24
commit-bot: I haz the power
3 years, 11 months ago (2017-01-26 20:19:52 UTC) #27
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/c6b3e0d3813eb1bc13bbaba9e5d1...

Powered by Google App Engine
This is Rietveld 408576698