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

Issue 2587853003: cros: Fix CrashRestoreComplexTest failure (Closed)

Created:
4 years ago by xiyuan
Modified:
4 years ago
Reviewers:
Alexander Alekseev
CC:
chromium-reviews, oshima+watch_chromium.org, davemoore+watch_chromium.org, James Cook
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cros: Fix CrashRestoreComplexTest failure CrashRestoreComplexTest restores session for non-existent user. The first session is created with browser_restart flag set. User manager currently runs RegularUserLoggedInAsEphemeral for such situation. This caused the first user not returned in UserManager's GetUsers call and causes ProfileHelper::GetUserByProfile to return nullptr. This CL fixes the case by using GetLoggedInUsers instead of GetUsers in GetUserByProfile. This would not happen in production where only known users could go through crash-n-restore path though. BUG=648964 Committed: https://crrev.com/97cdab276ba8b839254e978a44d8f5ac79f0e322 Cr-Commit-Position: refs/heads/master@{#439632}

Patch Set 1 #

Patch Set 2 : add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M chrome/browser/chromeos/profiles/profile_helper.cc View 1 1 chunk +3 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 15 (9 generated)
xiyuan
Fix CrashRestoreComplexTest failure for CL https://codereview.chromium.org/2573703003/. The CL uses MultiUserWindowManagerChromeOS in tests. CrashRestoreComplexTest fails because ...
4 years ago (2016-12-19 20:39:26 UTC) #4
Alexander Alekseev
lgtm
4 years ago (2016-12-20 00:13:11 UTC) #7
xiyuan
On 2016/12/20 00:13:11, Alexander Alekseev wrote: > lgtm Thanks.
4 years ago (2016-12-20 00:17:50 UTC) #8
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/2587853003/20001
4 years ago (2016-12-20 00:19:07 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-20 00:26:14 UTC) #13
commit-bot: I haz the power
4 years ago (2016-12-20 00:27:59 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/97cdab276ba8b839254e978a44d8f5ac79f0e322
Cr-Commit-Position: refs/heads/master@{#439632}

Powered by Google App Engine
This is Rietveld 408576698