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

Issue 594163002: Restore last used user session after crash (Closed)

Created:
6 years, 3 months ago by Nikita (slow)
Modified:
6 years, 2 months ago
CC:
chromium-reviews, nkostylev+watch_chromium.org, yoshiki+watch_chromium.org, rginda+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Restore last used user session after crash Since primary user profile is loaded synchronously its session will always show up first. Once all users profiles have been loaded we'll switch to the session of the user that was active before crash has happened. BUG=409226 Committed: https://crrev.com/5df7e99907b42603cb0f23e8a87daf49073e2c64 Cr-Commit-Position: refs/heads/master@{#296907}

Patch Set 1 #

Total comments: 2

Patch Set 2 : i #

Total comments: 2

Patch Set 3 : comment #

Patch Set 4 : rebase #

Patch Set 5 : special case in ChromeUserManagerImpl #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -56 lines) Patch
M chrome/browser/chromeos/login/session/user_session_manager.h View 1 2 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/session/user_session_manager.cc View 5 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/users/chrome_user_manager_impl.cc View 2 3 4 1 chunk +7 lines, -1 line 0 comments Download
M chrome/browser/chromeos/profiles/profile_helper.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_manager.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/browser/profiles/profile_manager_unittest.cc View 1 1 chunk +0 lines, -42 lines 0 comments Download
M components/user_manager/user_manager.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M components/user_manager/user_manager_base.h View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M components/user_manager/user_manager_base.cc View 1 2 3 7 chunks +30 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
Nikita (slow)
6 years, 3 months ago (2014-09-23 13:31:31 UTC) #2
Dmitry Polukhin
lgtm https://codereview.chromium.org/594163002/diff/1/components/user_manager/user_manager_base.cc File components/user_manager/user_manager_base.cc (right): https://codereview.chromium.org/594163002/diff/1/components/user_manager/user_manager_base.cc#newcode102 components/user_manager/user_manager_base.cc:102: registry->RegisterStringPref(kLastActiveUser, std::string()); Could you please clear this field ...
6 years, 3 months ago (2014-09-24 11:16:17 UTC) #3
Nikita (slow)
https://codereview.chromium.org/594163002/diff/1/components/user_manager/user_manager_base.cc File components/user_manager/user_manager_base.cc (right): https://codereview.chromium.org/594163002/diff/1/components/user_manager/user_manager_base.cc#newcode102 components/user_manager/user_manager_base.cc:102: registry->RegisterStringPref(kLastActiveUser, std::string()); On 2014/09/24 11:16:17, Dmitry Polukhin wrote: > ...
6 years, 2 months ago (2014-09-25 19:51:49 UTC) #4
Nikita (slow)
+skuhne@ for chrome/browser/profiles/* I had to delete this unit_test since it is no longer covering ...
6 years, 2 months ago (2014-09-25 19:55:00 UTC) #6
Mr4D (OOO till 08-26)
lgtm. Please address the comment in some way. :) https://codereview.chromium.org/594163002/diff/20001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/594163002/diff/20001/chrome/browser/profiles/profile_manager.cc#newcode1223 chrome/browser/profiles/profile_manager.cc:1223: ...
6 years, 2 months ago (2014-09-25 20:12:31 UTC) #7
Nikita (slow)
https://codereview.chromium.org/594163002/diff/20001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/594163002/diff/20001/chrome/browser/profiles/profile_manager.cc#newcode1223 chrome/browser/profiles/profile_manager.cc:1223: void ProfileManager::UpdateLastUser(Profile* last_active) { On 2014/09/25 20:12:30, Mr4D wrote: ...
6 years, 2 months ago (2014-09-26 06:30:53 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/594163002/60001
6 years, 2 months ago (2014-09-26 06:40:19 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/594163002/80001
6 years, 2 months ago (2014-09-26 07:58:58 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001) as 7994431380af5da91b3e02ded4264cb21930a49c
6 years, 2 months ago (2014-09-26 09:03:55 UTC) #14
commit-bot: I haz the power
6 years, 2 months ago (2014-09-26 09:04:29 UTC) #15
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/5df7e99907b42603cb0f23e8a87daf49073e2c64
Cr-Commit-Position: refs/heads/master@{#296907}

Powered by Google App Engine
This is Rietveld 408576698