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

Unified Diff: chrome/renderer/form_manager.cc

Issue 3226001: Detecting form locale (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Unit test for top websites Created 10 years, 3 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/chrome_tests.gypi ('k') | chrome/renderer/form_manager_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/form_manager.cc
diff --git a/chrome/renderer/form_manager.cc b/chrome/renderer/form_manager.cc
index 048f3475b9c3dbf23857444de86f376b3b43c6de..e50b3d97ebcb31a917a770bd96f0b6c8b20b0517 100644
--- a/chrome/renderer/form_manager.cc
+++ b/chrome/renderer/form_manager.cc
@@ -332,6 +332,7 @@ bool FormManager::WebFormElementToFormData(const WebFormElement& element,
form->origin = frame->url();
form->action = frame->document().completeURL(element.action());
form->user_submitted = element.wasUserSubmitted();
+ form->locale = UTF16ToUTF8(element.computeInheritedLanguage());
// If the completed URL is not valid, just use the action we get from
// WebKit.
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/renderer/form_manager_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698