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

Unified Diff: chrome/browser/autocomplete_history_manager.cc

Issue 6275011: DCHECK(result) keeps firing in AutocompleteHistoryManager::OnWebDataServiceRequestDone() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome
Patch Set: Created 9 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete_history_manager.cc
diff --git a/chrome/browser/autocomplete_history_manager.cc b/chrome/browser/autocomplete_history_manager.cc
index 40d8c72fae0383cf62da65125ca89af9c10c59c0..558a235b7aa1f3c04bda9abf054e9701246de00d 100644
--- a/chrome/browser/autocomplete_history_manager.cc
+++ b/chrome/browser/autocomplete_history_manager.cc
@@ -175,6 +175,13 @@ void AutocompleteHistoryManager::OnWebDataServiceRequestDone(
}
DCHECK(result);
+ // Returning early here if |result| is NULL. We've seen this happen on
+ // Linux due to NFS dismouting and causing sql failures. See crbug.com/68783.
Ilya Sherman 2011/01/21 01:58:09 nit: http://crbug.com/68783
willchan no longer on Chromium 2011/01/21 02:01:27 NFS dismounting.
dhollowa 2011/01/21 02:05:41 Done. But there's a mix of the two forms in the c
dhollowa 2011/01/21 02:05:41 Done.
+ if (!result) {
+ SendSuggestions(NULL);
+ return;
+ }
+
DCHECK(result->GetType() == AUTOFILL_VALUE_RESULT);
const WDResult<std::vector<string16> >* autofill_result =
static_cast<const WDResult<std::vector<string16> >*>(result);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698