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

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

Issue 2437193003: [WIP] Log request, start and end offsets.
Patch Set: Created 4 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/contextualsearch/contextual_search_delegate.cc
diff --git a/chrome/browser/android/contextualsearch/contextual_search_delegate.cc b/chrome/browser/android/contextualsearch/contextual_search_delegate.cc
index 78ad954d32b16cfb74ac53ddd55afc07a4ed9d77..fafa63906d642339ad4c9c3f78601277980b0ba4 100644
--- a/chrome/browser/android/contextualsearch/contextual_search_delegate.cc
+++ b/chrome/browser/android/contextualsearch/contextual_search_delegate.cc
@@ -240,6 +240,7 @@ std::string ContextualSearchDelegate::BuildRequestUrl(std::string selection) {
replacement_url);
}
}
+ VLOG(0) << "ctxs request: " << request;
return request;
}
@@ -303,6 +304,7 @@ void ContextualSearchDelegate::SaveSurroundingText(
int start_offset,
int end_offset) {
DCHECK(context_.get());
+ VLOG(0) << "ctxs offsets start " << start_offset << ", end " << end_offset << ", length " << surrounding_text.length();
// Sometimes the surroundings are 0, 0, '', so fall back on the selection.
// See crbug.com/393100.
if (start_offset == 0 && end_offset == 0 && surrounding_text.length() == 0) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698