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

Issue 1730001: Enable Chrome OS to load the user's nssdb later. (Closed)

Created:
10 years, 8 months ago by Chris Masone
Modified:
9 years, 7 months ago
Reviewers:
wtc
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

Enable Chrome OS to load the user's nssdb later. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=45954

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 5

Patch Set 5 : '' #

Total comments: 33

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -10 lines) Patch
M base/nss_util.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M base/nss_util.cc View 1 2 3 4 5 8 chunks +69 lines, -3 lines 0 comments Download
A base/nss_util_internal.h View 6 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils.cc View 2 3 4 5 6 chunks +33 lines, -4 lines 0 comments Download
M net/base/keygen_handler_nss.cc View 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M net/base/keygen_handler_unittest.cc View 2 3 4 5 3 chunks +15 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Chris Masone
on all non-chromiumos platforms, this should be a no-op. on chromiumos, this should delay the ...
10 years, 8 months ago (2010-04-20 22:57:58 UTC) #1
wtc
Chris, I suggest we do this: - Leave the behavior of EnsureNSSInit() unchanged. - Add ...
10 years, 8 months ago (2010-04-21 18:25:12 UTC) #2
Chris Masone
On 2010/04/21 18:25:12, wtc wrote: > Chris, > > I suggest we do this: > ...
10 years, 8 months ago (2010-04-21 18:44:37 UTC) #3
wtc
I see. I don't have a good solution, other than separating the creation of the ...
10 years, 8 months ago (2010-04-21 19:02:43 UTC) #4
Chris Masone
Ok! This has the approach we discussed last week, in which I store the slot ...
10 years, 7 months ago (2010-04-26 19:45:20 UTC) #5
wtc
Hi Chris, Thanks for the patch. I will review your patch again tomorrow morning (got ...
10 years, 7 months ago (2010-04-27 00:14:29 UTC) #6
Chris Masone
http://codereview.chromium.org/1730001/diff/22001/23004 File base/nss_slot_util.h (right): http://codereview.chromium.org/1730001/diff/22001/23004#newcode17 base/nss_slot_util.h:17: PK11SlotInfo* NSS_GetDefaultKeySlot(); On 2010/04/27 00:14:29, wtc wrote: > We ...
10 years, 7 months ago (2010-04-27 15:42:26 UTC) #7
wtc
LGTM. Please note the comments and suggested changes below. http://codereview.chromium.org/1730001/diff/22001/23006 File base/nss_util.h (right): http://codereview.chromium.org/1730001/diff/22001/23006#newcode29 base/nss_util.h:29: ...
10 years, 7 months ago (2010-04-27 18:11:26 UTC) #8
Chris Masone
I ran this through the trybots again after addressing your comments. I'll land it on ...
10 years, 7 months ago (2010-04-28 04:26:12 UTC) #9
wtc
http://codereview.chromium.org/1730001/diff/31001/32007 File chrome/browser/chromeos/login/login_utils.cc (right): http://codereview.chromium.org/1730001/diff/31001/32007#newcode73 chrome/browser/chromeos/login/login_utils.cc:73: if (!ptr_.get()) On 2010/04/28 04:26:13, cmasone wrote: > > ...
10 years, 7 months ago (2010-04-29 21:35:28 UTC) #10
Chris Masone
10 years, 7 months ago (2010-04-29 21:56:26 UTC) #11
On Thu, Apr 29, 2010 at 2:35 PM, <wtc@chromium.org> wrote:

>
> http://codereview.chromium.org/1730001/diff/31001/32007
> File chrome/browser/chromeos/login/login_utils.cc (right):
>
> http://codereview.chromium.org/1730001/diff/31001/32007#newcode73
> chrome/browser/chromeos/login/login_utils.cc:73: if (!ptr_.get())
> On 2010/04/28 04:26:13, cmasone wrote:
>
>  Is putting a lock around this sufficient?
>>
>
> Yes, it is.  I am not sure if multiple threads may call
> get() on the same LoginUtilsWrapper object, which is why
> I asked you to doublecheck.
>
> Why don't you call new LoginUtilsImpl in the constructor,
> as the original code did?
>
>
It was creating a problem in the browser_tests.  They create a
LoginUtilsWrapper so that a Mock can be stuck into it -- but the act of
creating the LoginUtilsWrapper created a LoginUtilsImpl, which tries to
register an Observer.  But, whatever thread they were creating this object
on had no NotificationRegistrar, so it was crashing.


>
> http://codereview.chromium.org/1730001/show
>

Powered by Google App Engine
This is Rietveld 408576698