summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/translate_helper.cc
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-27 17:37:01 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-27 17:37:01 +0000
commit290838a9c769dad3f5d43babdd019cacc198aa81 (patch)
tree04b7ba90ab46b5aa6922b31be41ab41e36f3549c /chrome/renderer/translate_helper.cc
parentd91ba37d590d050cfbe7a95053b314ebd446c71d (diff)
downloadchromium_src-290838a9c769dad3f5d43babdd019cacc198aa81.zip
chromium_src-290838a9c769dad3f5d43babdd019cacc198aa81.tar.gz
chromium_src-290838a9c769dad3f5d43babdd019cacc198aa81.tar.bz2
AutoFill: Notify the renderer when the page has finished translating. Extract
the forms once translation has occurred. This change also includes another variaton of the Name field, with tests. In addition, this change fixes parsing labels whose text element is not the first child of the label element. BUG=41694 TEST=FormManagerTest.LabelsWithSpans,NameFieldTest.FirstLast Review URL: http://codereview.chromium.org/1801002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45719 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/translate_helper.cc')
-rw-r--r--chrome/renderer/translate_helper.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/renderer/translate_helper.cc b/chrome/renderer/translate_helper.cc
index d6d8569..1fea5b7 100644
--- a/chrome/renderer/translate_helper.cc
+++ b/chrome/renderer/translate_helper.cc
@@ -196,6 +196,9 @@ void TranslateHelper::CheckTranslateStatus() {
translation_pending_ = false;
+ // Notify the renderer we are done.
+ render_view_->OnPageTranslated();
+
// Notify the browser we are done.
render_view_->Send(new ViewHostMsg_PageTranslated(
render_view_->routing_id(), render_view_->page_id(),