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

Issue 27048: Fix a crash when dns prefetching was being shut down without being started.... (Closed)

Created:
11 years, 10 months ago by Paweł Hajdan Jr.
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Fix a crash when dns prefetching was being shut down without being started. This happened when BrowserMain exited before the point when we initialized dns prefetching, but after BrowserProcessImpl was created. We do shutdown of dns prefetching in ~BrowserProcessImpl. Example way to trigger the crash: open a saved HTML page while Chrome is already running. Change ShutdownDnsPrefetch to EnsureDnsPrefetchingShutdown which does nothing if dns prefetching has not been initialized. This is the simplest way to prevent the crash and we don't want to complicate the startup sequence even more. BUG=7900

Patch Set 1 #

Patch Set 2 : drop the ui test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -6 lines) Patch
M chrome/browser/browser_process_impl.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/dns_global.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/net/dns_global.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Paweł Hajdan Jr.
Please review: nsylvain: to push it quickly darin: TBR, main review
11 years, 10 months ago (2009-02-23 19:18:50 UTC) #1
Nicolas Sylvain
LGTM
11 years, 10 months ago (2009-02-23 19:21:05 UTC) #2
darin (slow to review)
11 years, 10 months ago (2009-02-23 19:40:57 UTC) #3
LGTM

Powered by Google App Engine
This is Rietveld 408576698