Commit 6501a775 authored by engedy's avatar engedy Committed by Commit bot

Prettify URIs for blacklisted entries on the chrome://settings/passwords page.

Use the same logic as for normal Android app credentials to avoid displaying the lengthy hash part of android:// URIs.

BUG=486736

Review URL: https://codereview.chromium.org/1137283002

Cr-Commit-Position: refs/heads/master@{#329623}
parent a4600cde
...@@ -219,8 +219,8 @@ void PasswordManagerHandler::SetPasswordExceptionList( ...@@ -219,8 +219,8 @@ void PasswordManagerHandler::SetPasswordExceptionList(
const ScopedVector<autofill::PasswordForm>& password_exception_list) { const ScopedVector<autofill::PasswordForm>& password_exception_list) {
base::ListValue entries; base::ListValue entries;
for (size_t i = 0; i < password_exception_list.size(); ++i) { for (size_t i = 0; i < password_exception_list.size(); ++i) {
entries.Append(new base::StringValue( entries.AppendString(
net::FormatUrl(password_exception_list[i]->origin, languages_))); GetHumanReadableOrigin(*password_exception_list[i], languages_));
} }
web_ui()->CallJavascriptFunction("PasswordManager.setPasswordExceptionsList", web_ui()->CallJavascriptFunction("PasswordManager.setPasswordExceptionsList",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment