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

Issue 460233004: Fixed misuse of GetProfileByUser in MultiProfileUserController. (Closed)

Created:
6 years, 4 months ago by dzhioev (left Google)
Modified:
6 years, 4 months ago
Reviewers:
Nikita (slow)
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Fixed misuse of GetProfileByUser in MultiProfileUserController. GetProfileByUserUnsafe was called to yearly sometimes, when profile was not created yet. I replaced GetProfileByUserUnsafe with GetProfileByUser and added check that it is not NULL. BUG=361528 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289639

Patch Set 1 #

Total comments: 2

Patch Set 2 : Merged with master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -18 lines) Patch
M chrome/browser/chromeos/login/users/multi_profile_user_controller.cc View 1 1 chunk +14 lines, -18 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
dzhioev (left Google)
6 years, 4 months ago (2014-08-12 15:14:42 UTC) #1
Nikita (slow)
https://codereview.chromium.org/460233004/diff/1/chrome/browser/chromeos/login/users/multi_profile_user_controller.cc File chrome/browser/chromeos/login/users/multi_profile_user_controller.cc (right): https://codereview.chromium.org/460233004/diff/1/chrome/browser/chromeos/login/users/multi_profile_user_controller.cc#newcode122 chrome/browser/chromeos/login/users/multi_profile_user_controller.cc:122: if (Profile* primary_user_profile = I worry that if someone ...
6 years, 4 months ago (2014-08-13 09:16:46 UTC) #2
dzhioev (left Google)
https://codereview.chromium.org/460233004/diff/1/chrome/browser/chromeos/login/users/multi_profile_user_controller.cc File chrome/browser/chromeos/login/users/multi_profile_user_controller.cc (right): https://codereview.chromium.org/460233004/diff/1/chrome/browser/chromeos/login/users/multi_profile_user_controller.cc#newcode122 chrome/browser/chromeos/login/users/multi_profile_user_controller.cc:122: if (Profile* primary_user_profile = On 2014/08/13 09:16:46, Nikita Kostylev ...
6 years, 4 months ago (2014-08-13 16:41:14 UTC) #3
Nikita (slow)
lgtm
6 years, 4 months ago (2014-08-13 16:43:39 UTC) #4
dzhioev (left Google)
The CQ bit was checked by dzhioev@chromium.org
6 years, 4 months ago (2014-08-13 17:34:01 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dzhioev@chromium.org/460233004/1
6 years, 4 months ago (2014-08-13 17:35:16 UTC) #6
dzhioev (left Google)
The CQ bit was checked by dzhioev@chromium.org
6 years, 4 months ago (2014-08-13 18:38:52 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dzhioev@chromium.org/460233004/20001
6 years, 4 months ago (2014-08-13 18:41:04 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-14 02:07:40 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-14 08:09:59 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/5497)
6 years, 4 months ago (2014-08-14 08:10:02 UTC) #11
dzhioev (left Google)
The CQ bit was checked by dzhioev@chromium.org
6 years, 4 months ago (2014-08-14 13:23:10 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dzhioev@chromium.org/460233004/20001
6 years, 4 months ago (2014-08-14 13:25:12 UTC) #13
commit-bot: I haz the power
6 years, 4 months ago (2014-08-14 17:40:55 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (20001) as 289639

Powered by Google App Engine
This is Rietveld 408576698