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

Unified Diff: chrome/browser/autocomplete/autocomplete_match.cc

Issue 18878007: Omnibox: Make the Controller Reorder Matches for Inlining (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: one final pass through the code Created 7 years, 5 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
Index: chrome/browser/autocomplete/autocomplete_match.cc
diff --git a/chrome/browser/autocomplete/autocomplete_match.cc b/chrome/browser/autocomplete/autocomplete_match.cc
index fc6774c5d8e10bde74f42f9c611be8d725bb0644..a39ba6202250e19bad8e9c65dbad5110f376d376 100644
--- a/chrome/browser/autocomplete/autocomplete_match.cc
+++ b/chrome/browser/autocomplete/autocomplete_match.cc
@@ -44,6 +44,7 @@ AutocompleteMatch::AutocompleteMatch()
typed_count(-1),
deletable(false),
inline_autocomplete_offset(string16::npos),
+ allowed_to_be_default_match(false),
transition(content::PAGE_TRANSITION_GENERATED),
is_history_what_you_typed_match(false),
type(AutocompleteMatchType::SEARCH_WHAT_YOU_TYPED),
@@ -60,6 +61,7 @@ AutocompleteMatch::AutocompleteMatch(AutocompleteProvider* provider,
typed_count(-1),
deletable(deletable),
inline_autocomplete_offset(string16::npos),
+ allowed_to_be_default_match(false),
transition(content::PAGE_TRANSITION_TYPED),
is_history_what_you_typed_match(false),
type(type),
@@ -74,6 +76,7 @@ AutocompleteMatch::AutocompleteMatch(const AutocompleteMatch& match)
deletable(match.deletable),
fill_into_edit(match.fill_into_edit),
inline_autocomplete_offset(match.inline_autocomplete_offset),
+ allowed_to_be_default_match(match.allowed_to_be_default_match),
destination_url(match.destination_url),
stripped_destination_url(match.stripped_destination_url),
contents(match.contents),
@@ -108,6 +111,7 @@ AutocompleteMatch& AutocompleteMatch::operator=(
deletable = match.deletable;
fill_into_edit = match.fill_into_edit;
inline_autocomplete_offset = match.inline_autocomplete_offset;
+ allowed_to_be_default_match = match.allowed_to_be_default_match;
destination_url = match.destination_url;
stripped_destination_url = match.stripped_destination_url;
contents = match.contents;

Powered by Google App Engine
This is Rietveld 408576698