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

Issue 1704623002: GetProfileFromAccountId() should not return a null point if a valid account id is provided. (Closed)

Created:
4 years, 10 months ago by xdai1
Modified:
4 years, 10 months ago
CC:
chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

GetProfileFromAccountId() should not return a null point if a valid account id is provided. GetProfileFromAccountId() might return a null point if a refresh token is revoked in the session, which might cause a browser crash in ChromeOS. In this case we avoid nullptr by calling GetProfileByUser() as a fallback function. BUG=585847, 532535 Committed: https://crrev.com/78dbec96889ea75d9e93b0f166cf7ab68dd209ef Cr-Commit-Position: refs/heads/master@{#376202}

Patch Set 1 #

Total comments: 3

Patch Set 2 : #

Total comments: 1

Patch Set 3 : Add comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -2 lines) Patch
M chrome/browser/ui/ash/multi_user/multi_user_util.cc View 1 2 3 chunks +17 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
xdai1
skuhne@, could you help to review this CL please? +cc alemate@ FYI
4 years, 10 months ago (2016-02-16 20:10:41 UTC) #2
Mr4D (OOO till 08-26)
If this is in response to some rights change we should possibly end the session ...
4 years, 10 months ago (2016-02-16 20:26:18 UTC) #3
Alexander Alekseev
https://codereview.chromium.org/1704623002/diff/1/chrome/browser/ui/ash/multi_user/multi_user_util.cc File chrome/browser/ui/ash/multi_user/multi_user_util.cc (right): https://codereview.chromium.org/1704623002/diff/1/chrome/browser/ui/ash/multi_user/multi_user_util.cc#newcode52 chrome/browser/ui/ash/multi_user/multi_user_util.cc:52: // If the refresh token is revoked in the ...
4 years, 10 months ago (2016-02-16 20:34:15 UTC) #4
Mr4D (OOO till 08-26)
On 2016/02/16 20:34:15, Alexander Alekseev wrote: > https://codereview.chromium.org/1704623002/diff/1/chrome/browser/ui/ash/multi_user/multi_user_util.cc > File chrome/browser/ui/ash/multi_user/multi_user_util.cc (right): > > https://codereview.chromium.org/1704623002/diff/1/chrome/browser/ui/ash/multi_user/multi_user_util.cc#newcode52 ...
4 years, 10 months ago (2016-02-16 21:25:12 UTC) #6
xdai1
Please take another look, thanks for your review! https://codereview.chromium.org/1704623002/diff/1/chrome/browser/ui/ash/multi_user/multi_user_util.cc File chrome/browser/ui/ash/multi_user/multi_user_util.cc (right): https://codereview.chromium.org/1704623002/diff/1/chrome/browser/ui/ash/multi_user/multi_user_util.cc#newcode52 chrome/browser/ui/ash/multi_user/multi_user_util.cc:52: // ...
4 years, 10 months ago (2016-02-16 21:36:28 UTC) #7
Alexander Alekseev
On 2016/02/16 21:25:12, Mr4D wrote: > On 2016/02/16 20:34:15, Alexander Alekseev wrote: > > > ...
4 years, 10 months ago (2016-02-16 22:07:01 UTC) #8
Mr4D (OOO till 08-26)
Since we have now an issue which will force log out the user, this change ...
4 years, 10 months ago (2016-02-17 04:05:08 UTC) #9
xdai1
On 2016/02/17 04:05:08, Mr4D wrote: > Since we have now an issue which will force ...
4 years, 10 months ago (2016-02-17 18:29:15 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1704623002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1704623002/20001
4 years, 10 months ago (2016-02-17 18:40:50 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-17 19:20:47 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1704623002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1704623002/40001
4 years, 10 months ago (2016-02-18 17:48:54 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-02-18 18:20:13 UTC) #19
commit-bot: I haz the power
4 years, 10 months ago (2016-02-18 18:22:34 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/78dbec96889ea75d9e93b0f166cf7ab68dd209ef
Cr-Commit-Position: refs/heads/master@{#376202}

Powered by Google App Engine
This is Rietveld 408576698