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

Issue 123633002: ChromeOS: Fix crash if login profile triggers client auth. (Closed)

Created:
6 years, 11 months ago by mattm
Modified:
6 years, 11 months ago
Reviewers:
Ryan Sleevi
CC:
chromium-reviews, cbentzel+watch_chromium.org
Visibility:
Public.

Description

ChromeOS: Fix crash if login profile triggers client auth. The login profile (which is identified with an empty username_hash) does not have an entry in the chromeos_user_map_, which would cause a crash (or DCHECK) when GetPrivateSlotForChromeOSUser was called. GetPrivateSlotForChromeOSUser is changed to return a NULL slot handle for this case. Updates NSSProfileFilterChromeOS to allow NULL slot handles, which it will now receive due to the above change. BUG=331945, 302125 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=244690

Patch Set 1 #

Patch Set 2 : . #

Total comments: 12

Patch Set 3 : review chnges #

Patch Set 4 : copyright #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -3 lines) Patch
M crypto/nss_util.cc View 4 chunks +18 lines, -0 lines 0 comments Download
M crypto/nss_util_internal.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/cert/nss_profile_filter_chromeos.cc View 1 2 1 chunk +9 lines, -2 lines 0 comments Download
A net/cert/nss_profile_filter_chromeos_unittest.cc View 1 2 3 1 chunk +176 lines, -0 lines 0 comments Download
M net/net.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
mattm
6 years, 11 months ago (2014-01-11 02:47:56 UTC) #1
Ryan Sleevi
I'm having a bit of trouble following the why of this CL. Is it because ...
6 years, 11 months ago (2014-01-11 02:56:12 UTC) #2
mattm
updated description. https://codereview.chromium.org/123633002/diff/30001/net/cert/nss_profile_filter_chromeos.cc File net/cert/nss_profile_filter_chromeos.cc (right): https://codereview.chromium.org/123633002/diff/30001/net/cert/nss_profile_filter_chromeos.cc#newcode52 net/cert/nss_profile_filter_chromeos.cc:52: slot == crypto::ScopedPK11Slot(PK11_GetInternalSlot())) On 2014/01/11 02:56:13, Ryan ...
6 years, 11 months ago (2014-01-11 03:23:23 UTC) #3
mattm
updated description. https://codereview.chromium.org/123633002/diff/30001/net/cert/nss_profile_filter_chromeos.cc File net/cert/nss_profile_filter_chromeos.cc (right): https://codereview.chromium.org/123633002/diff/30001/net/cert/nss_profile_filter_chromeos.cc#newcode52 net/cert/nss_profile_filter_chromeos.cc:52: slot == crypto::ScopedPK11Slot(PK11_GetInternalSlot())) On 2014/01/11 02:56:13, Ryan ...
6 years, 11 months ago (2014-01-11 03:23:23 UTC) #4
Ryan Sleevi
https://codereview.chromium.org/123633002/diff/30001/net/cert/nss_profile_filter_chromeos.cc File net/cert/nss_profile_filter_chromeos.cc (right): https://codereview.chromium.org/123633002/diff/30001/net/cert/nss_profile_filter_chromeos.cc#newcode52 net/cert/nss_profile_filter_chromeos.cc:52: slot == crypto::ScopedPK11Slot(PK11_GetInternalSlot())) On 2014/01/11 03:23:23, mattm wrote: > ...
6 years, 11 months ago (2014-01-11 03:36:14 UTC) #5
mattm
https://codereview.chromium.org/123633002/diff/30001/net/cert/nss_profile_filter_chromeos.cc File net/cert/nss_profile_filter_chromeos.cc (right): https://codereview.chromium.org/123633002/diff/30001/net/cert/nss_profile_filter_chromeos.cc#newcode52 net/cert/nss_profile_filter_chromeos.cc:52: slot == crypto::ScopedPK11Slot(PK11_GetInternalSlot())) On 2014/01/11 03:36:14, Ryan Sleevi wrote: ...
6 years, 11 months ago (2014-01-14 02:29:05 UTC) #6
Ryan Sleevi
lgtm
6 years, 11 months ago (2014-01-14 03:45:42 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mattm@chromium.org/123633002/180001
6 years, 11 months ago (2014-01-14 04:53:59 UTC) #8
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=44664
6 years, 11 months ago (2014-01-14 07:35:24 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mattm@chromium.org/123633002/380001
6 years, 11 months ago (2014-01-14 08:31:47 UTC) #10
commit-bot: I haz the power
6 years, 11 months ago (2014-01-14 14:00:48 UTC) #11
Message was sent while issue was closed.
Change committed as 244690

Powered by Google App Engine
This is Rietveld 408576698