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

Unified Diff: components/search_engines/template_url.cc

Issue 573063002: Add ContextualSearchParams constructor to be called when content is passed via HTTP header and not … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to comments. Created 6 years, 3 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/search_engines/template_url.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/search_engines/template_url.cc
diff --git a/components/search_engines/template_url.cc b/components/search_engines/template_url.cc
index a68994d0c6b11a7ec507251a29cc4c36521496be..b0e5b27739ed5a351516d2ff377532dc1a6a05d4 100644
--- a/components/search_engines/template_url.cc
+++ b/components/search_engines/template_url.cc
@@ -204,20 +204,15 @@ TemplateURLRef::SearchTermsArgs::ContextualSearchParams::
TemplateURLRef::SearchTermsArgs::ContextualSearchParams::
ContextualSearchParams(
const int version,
- const size_t start,
- const size_t end,
const std::string& selection,
- const std::string& content,
const std::string& base_page_url,
- const std::string& encoding)
+ const bool resolve)
: version(version),
- start(start),
- end(end),
+ start(base::string16::npos),
+ end(base::string16::npos),
selection(selection),
- content(content),
base_page_url(base_page_url),
- encoding(encoding),
- resolve(true) {
+ resolve(resolve) {
}
TemplateURLRef::SearchTermsArgs::ContextualSearchParams::
« no previous file with comments | « components/search_engines/template_url.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698