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

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: (Rebasing) 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
« no previous file with comments | « chrome/common/render_messages.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/translate/translate_helper.cc
diff --git a/chrome/renderer/translate/translate_helper.cc b/chrome/renderer/translate/translate_helper.cc
index cf9804dd316ff086808365589f2baeb5b05f19a1..25971d243c16b21aac7f75eb2303c27127632308 100644
--- a/chrome/renderer/translate/translate_helper.cc
+++ b/chrome/renderer/translate/translate_helper.cc
@@ -124,6 +124,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,
« no previous file with comments | « chrome/common/render_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698