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

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

Issue 10537154: A working implementation of AQS (Assisted Query Stats). (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed InstantTest.OnChangeEvent failure; addressed remaining commments. Created 8 years, 6 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 e5e2cd3ee8fb13a4ed26870ad665471188c60ebe..0fd0db06474d493733e925d096bb6ebe355aaf14 100644
--- a/chrome/browser/autocomplete/autocomplete_match.cc
+++ b/chrome/browser/autocomplete/autocomplete_match.cc
@@ -73,6 +73,9 @@ AutocompleteMatch::AutocompleteMatch(const AutocompleteMatch& match)
from_previous(match.from_previous) {
if (match.associated_keyword.get())
Peter Kasting 2012/06/22 21:48:31 Nit: For consistency, we could probably change the
Bart N 2012/06/22 22:42:01 Actually, to satisfy both performance & consistenc
associated_keyword.reset(new AutocompleteMatch(*match.associated_keyword));
+ if (match.search_terms_args.get())
+ search_terms_args.reset(
+ new TemplateURLRef::SearchTermsArgs(*match.search_terms_args));
}
AutocompleteMatch::~AutocompleteMatch() {
@@ -103,7 +106,8 @@ AutocompleteMatch& AutocompleteMatch::operator=(
keyword = match.keyword;
starred = match.starred;
from_previous = match.from_previous;
-
+ search_terms_args.reset(match.search_terms_args.get() ?
+ new TemplateURLRef::SearchTermsArgs(*match.search_terms_args) : NULL);
return *this;
}
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_match.h ('k') | chrome/browser/autocomplete/autocomplete_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698