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

Unified Diff: components/password_manager/core/browser/password_ui_utils.h

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
Index: components/password_manager/core/browser/password_ui_utils.h
diff --git a/components/password_manager/core/browser/password_ui_utils.h b/components/password_manager/core/browser/password_ui_utils.h
index 661b139482a3564d6f1db0369ca94fa288cf3b94..034c98a479109708e6ad241d43afcb7c062486c2 100644
--- a/components/password_manager/core/browser/password_ui_utils.h
+++ b/components/password_manager/core/browser/password_ui_utils.h
@@ -19,9 +19,9 @@ namespace password_manager {
// Returns a string suitable for security display to the user (just like
// |FormatUrlForSecurityDisplayOmitScheme| based on origin of |password_form|
-// and |languages|) and without prefixes "m.", "mobile." or "www.". Also returns
-// the full URL of the origin as |link_url|. |link_url| will be also shown as
-// tooltip on the password page.
+// and without prefixes "m.", "mobile." or "www.". Also returns the full URL of
+// the origin as |link_url|. |link_url| will be also shown as tooltip on the
+// password page.
// For Android forms with empty |password_form.affiliated_web_realm|,
// returns the result of GetHumanReadableOriginForAndroidUri. For other Android
// forms, returns |password_form.affiliated_web_realm|.
@@ -30,15 +30,14 @@ namespace password_manager {
// |is_android_url|, |link_url|, |origin_is_clickable| are required to non-null.
std::string GetShownOriginAndLinkUrl(
const autofill::PasswordForm& password_form,
- const std::string& languages,
bool* is_android_uri,
GURL* link_url,
bool* origin_is_clickable);
// Returns a string suitable for security display to the user (just like
-// |FormatUrlForSecurityDisplayOmitScheme| based on origin of |password_form|
-// and |languages|) and without prefixes "m.", "mobile." or "www.".
-std::string GetShownOrigin(const GURL& origin, const std::string& languages);
+// |FormatUrlForSecurityDisplayOmitScheme| based on origin of |password_form|)
+// and without prefixes "m.", "mobile." or "www.".
+std::string GetShownOrigin(const GURL& origin);
} // namespace password_manager

Powered by Google App Engine
This is Rietveld 408576698