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

Issue 1865133002: kiosk: Fix kiosk session restart (Closed)

Created:
4 years, 8 months ago by xiyuan
Modified:
4 years, 8 months ago
CC:
chromium-reviews, oshima+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

kiosk: Fix kiosk session restart Make kiosk apps part of IsKnownUser. Otherwise, a kiosk session is terminated in the crash-and-restart case. BUG=599973 TEST=KioskCrashRestoreTest.Basic Committed: https://crrev.com/d4f0457c76a3bf8bd98a75a220bd5fb9475b51ef Cr-Commit-Position: refs/heads/master@{#388249}

Patch Set 1 #

Total comments: 25

Patch Set 2 : make kiosk apps known users #

Total comments: 2

Patch Set 3 : fix kiosk app users not updated #

Patch Set 4 : restore "PublicAccounts" local state #

Total comments: 22

Patch Set 5 : rebase, comments in #4 #

Total comments: 4

Patch Set 6 : rebase, fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+431 lines, -211 lines) Patch
A chrome/browser/chromeos/app_mode/kiosk_crash_restore_browsertest.cc View 1 2 3 4 1 chunk +203 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.cc View 1 2 3 4 1 chunk +15 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/login/users/chrome_user_manager_impl.h View 1 2 3 4 6 chunks +21 lines, -20 lines 0 comments Download
M chrome/browser/chromeos/login/users/chrome_user_manager_impl.cc View 1 2 3 4 5 14 chunks +126 lines, -120 lines 0 comments Download
M chrome/browser/chromeos/login/users/fake_chrome_user_manager.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/users/fake_chrome_user_manager.cc View 1 2 3 4 2 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/login/users/mock_user_manager.h View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/file_system/file_system_api_unittest.cc View 1 2 3 4 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/user_manager/fake_user_manager.h View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M components/user_manager/fake_user_manager.cc View 1 2 3 4 1 chunk +1 line, -5 lines 0 comments Download
M components/user_manager/user.h View 1 2 3 4 5 3 chunks +6 lines, -3 lines 0 comments Download
M components/user_manager/user.cc View 1 2 3 4 5 5 chunks +14 lines, -6 lines 0 comments Download
M components/user_manager/user_manager_base.h View 1 2 3 4 5 4 chunks +10 lines, -15 lines 0 comments Download
M components/user_manager/user_manager_base.cc View 1 2 3 4 5 4 chunks +9 lines, -10 lines 0 comments Download

Messages

Total messages: 25 (6 generated)
xiyuan
4 years, 8 months ago (2016-04-06 21:08:17 UTC) #2
bartfab (slow)
https://codereview.chromium.org/1865133002/diff/1/chrome/browser/chromeos/app_mode/kiosk_crash_restore_browsertest.cc File chrome/browser/chromeos/app_mode/kiosk_crash_restore_browsertest.cc (right): https://codereview.chromium.org/1865133002/diff/1/chrome/browser/chromeos/app_mode/kiosk_crash_restore_browsertest.cc#newcode45 chrome/browser/chromeos/app_mode/kiosk_crash_restore_browsertest.cc:45: CHECK(PathService::Get(chromeos::DIR_DEVICE_EXTENSION_LOCAL_CACHE, Should we not override this path to avoid ...
4 years, 8 months ago (2016-04-07 14:55:42 UTC) #3
xiyuan
https://codereview.chromium.org/1865133002/diff/1/chrome/browser/chromeos/app_mode/kiosk_crash_restore_browsertest.cc File chrome/browser/chromeos/app_mode/kiosk_crash_restore_browsertest.cc (right): https://codereview.chromium.org/1865133002/diff/1/chrome/browser/chromeos/app_mode/kiosk_crash_restore_browsertest.cc#newcode45 chrome/browser/chromeos/app_mode/kiosk_crash_restore_browsertest.cc:45: CHECK(PathService::Get(chromeos::DIR_DEVICE_EXTENSION_LOCAL_CACHE, On 2016/04/07 14:55:41, bartfab (slow) wrote: > Should ...
4 years, 8 months ago (2016-04-07 21:43:57 UTC) #4
bartfab (slow)
https://codereview.chromium.org/1865133002/diff/20001/chrome/browser/chromeos/login/users/chrome_user_manager_impl.cc File chrome/browser/chromeos/login/users/chrome_user_manager_impl.cc (right): https://codereview.chromium.org/1865133002/diff/20001/chrome/browser/chromeos/login/users/chrome_user_manager_impl.cc#newcode566 chrome/browser/chromeos/login/users/chrome_user_manager_impl.cc:566: const std::vector<policy::DeviceLocalAccount> device_local_accounts = We need to persist the ...
4 years, 8 months ago (2016-04-08 09:44:16 UTC) #5
xiyuan
https://codereview.chromium.org/1865133002/diff/20001/chrome/browser/chromeos/login/users/chrome_user_manager_impl.cc File chrome/browser/chromeos/login/users/chrome_user_manager_impl.cc (right): https://codereview.chromium.org/1865133002/diff/20001/chrome/browser/chromeos/login/users/chrome_user_manager_impl.cc#newcode566 chrome/browser/chromeos/login/users/chrome_user_manager_impl.cc:566: const std::vector<policy::DeviceLocalAccount> device_local_accounts = On 2016/04/08 09:44:15, bartfab (slow) ...
4 years, 8 months ago (2016-04-08 15:52:14 UTC) #6
bartfab (slow)
On 2016/04/08 15:52:14, xiyuan wrote: > https://codereview.chromium.org/1865133002/diff/20001/chrome/browser/chromeos/login/users/chrome_user_manager_impl.cc > File chrome/browser/chromeos/login/users/chrome_user_manager_impl.cc (right): > > https://codereview.chromium.org/1865133002/diff/20001/chrome/browser/chromeos/login/users/chrome_user_manager_impl.cc#newcode566 > ...
4 years, 8 months ago (2016-04-11 10:30:23 UTC) #7
xiyuan
On 2016/04/11 10:30:23, bartfab (slow) wrote: > That would be racey. What if by the ...
4 years, 8 months ago (2016-04-11 17:01:17 UTC) #8
bartfab (slow)
https://codereview.chromium.org/1865133002/diff/60001/chrome/browser/chromeos/app_mode/kiosk_crash_restore_browsertest.cc File chrome/browser/chromeos/app_mode/kiosk_crash_restore_browsertest.cc (right): https://codereview.chromium.org/1865133002/diff/60001/chrome/browser/chromeos/app_mode/kiosk_crash_restore_browsertest.cc#newcode121 chrome/browser/chromeos/app_mode/kiosk_crash_restore_browsertest.cc:121: // Prepare the policy data store in device policy ...
4 years, 8 months ago (2016-04-12 15:08:13 UTC) #9
xiyuan
Sorry for the rebasing. I want to pull in the std::unique_ptr changes. https://codereview.chromium.org/1865133002/diff/60001/chrome/browser/chromeos/app_mode/kiosk_crash_restore_browsertest.cc File chrome/browser/chromeos/app_mode/kiosk_crash_restore_browsertest.cc ...
4 years, 8 months ago (2016-04-12 16:22:51 UTC) #10
xiyuan
ping?
4 years, 8 months ago (2016-04-15 17:50:15 UTC) #12
bartfab (slow)
lgtm https://codereview.chromium.org/1865133002/diff/80001/components/user_manager/user.h File components/user_manager/user.h (right): https://codereview.chromium.org/1865133002/diff/80001/components/user_manager/user.h#newcode118 components/user_manager/user.h:118: virtual bool IsDeviceLocalAccountUser() const; Nit: The "User" is ...
4 years, 8 months ago (2016-04-18 13:09:25 UTC) #13
xiyuan
https://codereview.chromium.org/1865133002/diff/80001/components/user_manager/user.h File components/user_manager/user.h (right): https://codereview.chromium.org/1865133002/diff/80001/components/user_manager/user.h#newcode118 components/user_manager/user.h:118: virtual bool IsDeviceLocalAccountUser() const; On 2016/04/18 13:09:25, bartfab (slow) ...
4 years, 8 months ago (2016-04-18 16:53:27 UTC) #14
bartfab (slow)
lgtm
4 years, 8 months ago (2016-04-18 16:57:48 UTC) #15
xiyuan
+achuith for owner's review: /components/user_manager/* +mtomasz for owner's review: c/b/extensions/api/file_system/file_system_api_unittest.cc Thanks.
4 years, 8 months ago (2016-04-18 17:17:39 UTC) #17
achuithb
On 2016/04/18 17:17:39, xiyuan wrote: > +achuith for owner's review: > /components/user_manager/* lgtm for /components/user_manager
4 years, 8 months ago (2016-04-18 17:22:29 UTC) #18
mtomasz
file_system_api_unittest.cc lgtm
4 years, 8 months ago (2016-04-19 01:50:31 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1865133002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1865133002/100001
4 years, 8 months ago (2016-04-19 15:48:13 UTC) #21
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 8 months ago (2016-04-19 18:23:05 UTC) #23
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:13:55 UTC) #25
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/d4f0457c76a3bf8bd98a75a220bd5fb9475b51ef
Cr-Commit-Position: refs/heads/master@{#388249}

Powered by Google App Engine
This is Rietveld 408576698