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

Unified Diff: chrome/renderer/translate/translate_helper.cc

Issue 15728008: Add the 'content' column to see what text is used to detect a language (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Modified the comment Created 7 years, 7 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/renderer/translate/translate_helper.cc
diff --git a/chrome/renderer/translate/translate_helper.cc b/chrome/renderer/translate/translate_helper.cc
index d229924db4542af322d02abcbd205abd77107efa..6882d8da845e64d1a2eff9e05c32ffdf8cd988a1 100644
--- a/chrome/renderer/translate/translate_helper.cc
+++ b/chrome/renderer/translate/translate_helper.cc
@@ -114,6 +114,10 @@ void TranslateHelper::PageCaptured(const string16& contents) {
details.is_cld_reliable = is_cld_reliable;
details.adopted_language = language;
+ // TODO(hajimehoshi): If this affects performance, it should be set only if
+ // translate-internals tab exists.
+ details.contents = contents;
+
Send(new ChromeViewHostMsg_TranslateLanguageDetermined(
routing_id(),
details,

Powered by Google App Engine
This is Rietveld 408576698