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

Issue 3470001: Reland r59511: Eagerly set the IO loop used for OCSP. (Closed)

Created:
10 years, 3 months ago by willchan no longer on Chromium
Modified:
9 years, 7 months ago
Reviewers:
Craig, eroman, wtc
CC:
chromium-reviews, cbentzel+watch_chromium.org, ben+cc_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, akalin
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Reland r59511: Eagerly set the IO loop used for OCSP. ChromeOS will create a special Profile for login. Previously, OCSP initialization was done for the "default" ChromeURLRequestContext for each Profile. Since we can have multiple profiles, this causes the initialization (and uninitialization) to happen multiple times, which causes problems for OCSP since we use statics. The solution is to identify the "main" Profile. We create said Profile in BrowserMain. I add an "is_main_" variable to URLRequestContextGetter and URLRequestContext, so that only the "main" URLRequestContext will initialize OCSP. Other than minor plumbing of "is_main_", this changelist is identical to r59511. BUG=55940 TEST=Startup ChromeOS's Chrome. Should not crash on startup. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=59972

Patch Set 1 #

Patch Set 2 : Address wtc's comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+227 lines, -102 lines) Patch
M chrome/browser/browser_main.cc View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/io_thread.cc View 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/net/chrome_url_request_context.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/net/chrome_url_request_context.cc View 3 chunks +10 lines, -6 lines 0 comments Download
M chrome/common/net/url_request_context_getter.h View 1 2 chunks +17 lines, -1 line 0 comments Download
M net/ocsp/nss_ocsp.h View 1 chunk +5 lines, -0 lines 0 comments Download
M net/ocsp/nss_ocsp.cc View 7 chunks +172 lines, -92 lines 0 comments Download
M net/url_request/url_request_context.h View 2 chunks +8 lines, -0 lines 0 comments Download
M net/url_request/url_request_context.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
willchan no longer on Chromium
10 years, 3 months ago (2010-09-19 18:45:09 UTC) #1
wtc
LGTM. Note the following two issues. 1. It would be nice to prevent the notion ...
10 years, 3 months ago (2010-09-20 19:11:03 UTC) #2
willchan no longer on Chromium
On 2010/09/20 19:11:03, wtc wrote: > LGTM. Note the following two issues. > > 1. ...
10 years, 3 months ago (2010-09-20 19:52:57 UTC) #3
Craig
I'm seeing lots of these after updating to r60017 btw.: ERROR:net/ocsp/nss_ocsp.cc(536)] No URLRequestContext for OCSP ...
10 years, 3 months ago (2010-09-21 06:43:10 UTC) #4
willchan no longer on Chromium
I backed it out for causing chromiium os leaks. On Mon, Sep 20, 2010 at ...
10 years, 3 months ago (2010-09-21 07:02:16 UTC) #5
wtc
10 years, 3 months ago (2010-09-21 17:33:40 UTC) #6
On 2010/09/21 07:02:16, willchan wrote:
> I backed it out for causing chromiium os leaks.

Sorry to hear that.

For the next relanding of this patch, please first create a CL
based on the reverted patch and immediately upload it, so that
Patch Set 1 of the new CL is the reverted patch and we will be
able to see your fix for Chrome OS leaks easily.  Thanks.

Powered by Google App Engine
This is Rietveld 408576698