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

Unified Diff: chrome/browser/renderer_host/render_view_host.cc

Issue 5322001: Before starting translation reset cache in AutoFillManager. To call Reset() f... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years, 1 month 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/renderer_host/render_view_host.cc
===================================================================
--- chrome/browser/renderer_host/render_view_host.cc (revision 66919)
+++ chrome/browser/renderer_host/render_view_host.cc (working copy)
@@ -2003,6 +2003,12 @@
const std::string& translate_script,
const std::string& source_lang,
const std::string& target_lang) {
+ // Before start translation, reset cache in AutoFillManager first.
James Hawkins 2010/11/23 19:18:53 Please expand this comment to explain why.
honten.org 2010/11/23 19:32:22 I want to replace the comment as following, what d
James Hawkins 2010/11/23 19:35:34 Way too verbose. The last two sentences suffice.
+ RenderViewHostDelegate::AutoFill* autofill_delegate =
+ delegate_->GetAutoFillDelegate();
+ if (autofill_delegate)
+ autofill_delegate->Reset();
+
Send(new ViewMsg_TranslatePage(routing_id(), page_id, translate_script,
source_lang, target_lang));
}

Powered by Google App Engine
This is Rietveld 408576698