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

Unified Diff: chrome/browser/net/dns_global.cc

Issue 27048: Fix a crash when dns prefetching was being shut down without being started.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: drop the ui test Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/net/dns_global.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/dns_global.cc
diff --git a/chrome/browser/net/dns_global.cc b/chrome/browser/net/dns_global.cc
index 9733e52508c13fb2eff6c96a40b805dbfe69121c..09fe5e05c8316fb006757053f5f54e3ab788171e 100644
--- a/chrome/browser/net/dns_global.cc
+++ b/chrome/browser/net/dns_global.cc
@@ -399,9 +399,9 @@ void InitDnsPrefetch(PrefService* user_prefs) {
}
}
-void ShutdownDnsPrefetch() {
- DCHECK(NULL != dns_master);
- dns_master->Shutdown();
+void EnsureDnsPrefetchShutdown() {
+ if (NULL != dns_master)
+ dns_master->Shutdown();
}
void FreeDnsPrefetchResources() {
« no previous file with comments | « chrome/browser/net/dns_global.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698