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

Unified Diff: components/omnibox/browser/autocomplete_match.cc

Issue 2755503002: Add a new entry to omnibox_event.proto to log specific type of contextual suggestions (Closed)
Patch Set: Small fixes and sync. Created 3 years, 9 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 | « components/omnibox/browser/autocomplete_match.h ('k') | components/omnibox/browser/base_search_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/omnibox/browser/autocomplete_match.cc
diff --git a/components/omnibox/browser/autocomplete_match.cc b/components/omnibox/browser/autocomplete_match.cc
index de13a63d3c4cab1cac2a683fd8e729af63ff4e61..c7e03045969160a5097e40211bc5cde24b888985 100644
--- a/components/omnibox/browser/autocomplete_match.cc
+++ b/components/omnibox/browser/autocomplete_match.cc
@@ -123,16 +123,18 @@ AutocompleteMatch::AutocompleteMatch(const AutocompleteMatch& match)
answer(SuggestionAnswer::copy(match.answer.get())),
transition(match.transition),
type(match.type),
- associated_keyword(match.associated_keyword.get() ?
- new AutocompleteMatch(*match.associated_keyword) : NULL),
+ subtype_identifier(match.subtype_identifier),
+ associated_keyword(match.associated_keyword.get()
+ ? new AutocompleteMatch(*match.associated_keyword)
+ : NULL),
keyword(match.keyword),
from_previous(match.from_previous),
- search_terms_args(match.search_terms_args.get() ?
- new TemplateURLRef::SearchTermsArgs(*match.search_terms_args) :
- NULL),
+ search_terms_args(
+ match.search_terms_args.get()
+ ? new TemplateURLRef::SearchTermsArgs(*match.search_terms_args)
+ : NULL),
additional_info(match.additional_info),
- duplicate_matches(match.duplicate_matches) {
-}
+ duplicate_matches(match.duplicate_matches) {}
AutocompleteMatch::~AutocompleteMatch() {
}
@@ -161,6 +163,7 @@ AutocompleteMatch& AutocompleteMatch::operator=(
answer = SuggestionAnswer::copy(match.answer.get());
transition = match.transition;
type = match.type;
+ subtype_identifier = match.subtype_identifier;
associated_keyword.reset(match.associated_keyword.get() ?
new AutocompleteMatch(*match.associated_keyword) : NULL);
keyword = match.keyword;
« no previous file with comments | « components/omnibox/browser/autocomplete_match.h ('k') | components/omnibox/browser/base_search_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698