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

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

Issue 69703002: Modified GetMatchToPrefetch() to return a valid match for prefetching even when hide_verbatim flag i (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 7 years 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
Index: chrome/browser/autocomplete/autocomplete_result.h
diff --git a/chrome/browser/autocomplete/autocomplete_result.h b/chrome/browser/autocomplete/autocomplete_result.h
index 69bdbed24dd56b7afc89d75e817762381f00690f..e7fec6cb3bd7477a1a1fd73b453e4bad06c22a05 100644
--- a/chrome/browser/autocomplete/autocomplete_result.h
+++ b/chrome/browser/autocomplete/autocomplete_result.h
@@ -125,6 +125,11 @@ class AutocompleteResult {
// the dropdown should be closed.
bool ShouldHideTopMatch() const;
+ // Returns true if the top match is a verbatim search or URL match (see
+ // IsVerbatimType() in autocomplete_match.h), and the next match is not also
+ // some kind of verbatim match.
+ bool TopMatchIsVerbatimAndHasNoConsecutiveVerbatimMatches() const;
+
const GURL& alternate_nav_url() const { return alternate_nav_url_; }
// Clears the matches for this result set.

Powered by Google App Engine
This is Rietveld 408576698