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

Unified Diff: third_party/WebKit/Source/core/html/forms/EmailInputType.cpp

Issue 1841653003: Drop |languages| from {Format,Elide}Url* and IDNToUnicode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased, most Android targets locally built successfully Created 4 years, 9 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: third_party/WebKit/Source/core/html/forms/EmailInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/EmailInputType.cpp b/third_party/WebKit/Source/core/html/forms/EmailInputType.cpp
index 2706f7797fb829d960f171401db797851b276f54..ceb8a1d3647fdf5c3bedfe044363e95f0e9f6932 100644
--- a/third_party/WebKit/Source/core/html/forms/EmailInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/EmailInputType.cpp
@@ -97,11 +97,7 @@ String EmailInputType::convertEmailAddressToUnicode(const String& address) const
if (address.find("xn--", atPosition + 1) == kNotFound)
return address;
- if (!chromeClient())
- return address;
-
- String languages = chromeClient()->acceptLanguages();
- String unicodeHost = Platform::current()->convertIDNToUnicode(address.substring(atPosition + 1), languages);
+ String unicodeHost = Platform::current()->convertIDNToUnicode(address.substring(atPosition + 1));
StringBuilder builder;
builder.append(address, 0, atPosition + 1);
builder.append(unicodeHost);

Powered by Google App Engine
This is Rietveld 408576698