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

Unified Diff: chrome/browser/android/contextualsearch/contextual_search_context.cc

Issue 2211353002: [TTS] Gather surrounding text on Tap before any UX. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed unused code and consolidated two functions, updated comments. Created 4 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
Index: chrome/browser/android/contextualsearch/contextual_search_context.cc
diff --git a/chrome/browser/android/contextualsearch/contextual_search_context.cc b/chrome/browser/android/contextualsearch/contextual_search_context.cc
index 36216ae73f0cbbb392b9d1aec140446dd68b12ad..9f808907c74a4bf5cb258bf405e80400b854cc63 100644
--- a/chrome/browser/android/contextualsearch/contextual_search_context.cc
+++ b/chrome/browser/android/contextualsearch/contextual_search_context.cc
@@ -9,11 +9,18 @@ ContextualSearchContext::ContextualSearchContext(
const bool use_resolved_search_term,
const GURL& page_url,
const std::string& encoding)
- : selected_text(selected_text),
- use_resolved_search_term(use_resolved_search_term),
+ : use_resolved_search_term(use_resolved_search_term),
page_url(page_url),
- encoding(encoding) {
-}
+ encoding(encoding),
+ selected_text(selected_text) {}
+
+ContextualSearchContext::ContextualSearchContext(
+ const bool use_resolved_search_term,
+ const GURL& page_url,
+ const std::string& encoding)
+ : use_resolved_search_term(use_resolved_search_term),
+ page_url(page_url),
+ encoding(encoding) {}
ContextualSearchContext::~ContextualSearchContext() {
}

Powered by Google App Engine
This is Rietveld 408576698