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

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: fix typo in elide_url.cc Created 4 years, 8 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 | « ios/web/web_state/web_state_impl.mm ('k') | third_party/WebKit/public/platform/Platform.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3690708b83e1785063ddf754a5432be16fdc2804..dbbd1ef7bb5660e450844de843ac31ea0b5da6fd 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);
« no previous file with comments | « ios/web/web_state/web_state_impl.mm ('k') | third_party/WebKit/public/platform/Platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698