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

Unified Diff: chrome/browser/autocomplete/history_url_provider.h

Issue 343051: Make sure we can still navigate to URLs when the History DB can't be loaded.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 2 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 | chrome/browser/autocomplete/history_url_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/history_url_provider.h
===================================================================
--- chrome/browser/autocomplete/history_url_provider.h (revision 30468)
+++ chrome/browser/autocomplete/history_url_provider.h (working copy)
@@ -101,6 +101,13 @@
// we run the extra queries, the lack of signaling is not a problem.
bool cancel;
+ // Set by ExecuteWithDB() on the history thread when the query could not be
+ // performed because the history system failed to properly init the database.
+ // If this is set when the main thread is called back, it avoids changing
+ // |matches_| at all, so it won't delete the default match
+ // RunAutocompletePasses() creates.
+ bool failed;
+
// List of matches written by the history thread. We keep this separate list
// to avoid having the main thread read the provider's matches while the
// history thread is manipulating them. The provider copies this list back
« no previous file with comments | « no previous file | chrome/browser/autocomplete/history_url_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698