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

Unified Diff: chrome/browser/ui/login/login_prompt.cc

Issue 1460873003: Fixing Authentication Dialog for Proxy Authentication. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/app/generated_resources.grd ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/login/login_prompt.cc
diff --git a/chrome/browser/ui/login/login_prompt.cc b/chrome/browser/ui/login/login_prompt.cc
index 906fce73a0f7dc721d1713a4bc2fe11be688416e..c0a8d320eb428d6e2f84de80d2bc54b90147ff60 100644
--- a/chrome/browser/ui/login/login_prompt.cc
+++ b/chrome/browser/ui/login/login_prompt.cc
@@ -125,12 +125,20 @@ void ShowLoginPrompt(const GURL& request_url,
base::string16 authority =
url_formatter::FormatUrlForSecurityDisplay(request_url, languages);
- base::string16 explanation =
- elided_realm.empty()
- ? l10n_util::GetStringFUTF16(IDS_LOGIN_DIALOG_DESCRIPTION_NO_REALM,
- authority)
- : l10n_util::GetStringFUTF16(IDS_LOGIN_DIALOG_DESCRIPTION, authority,
- elided_realm);
+ base::string16 explanation;
+ if (auth_info->is_proxy) {
+ explanation = elided_realm.empty()
+ ? l10n_util::GetStringFUTF16(
+ IDS_LOGIN_DIALOG_DESCRIPTION_PROXY_NO_REALM, authority)
+ : l10n_util::GetStringFUTF16(IDS_LOGIN_DIALOG_DESCRIPTION_PROXY,
+ authority, elided_realm);
asanka 2016/06/14 15:00:30 The |authority| here is based on the request URL,
+ } else {
+ explanation = elided_realm.empty()
+ ? l10n_util::GetStringFUTF16(IDS_LOGIN_DIALOG_DESCRIPTION_NO_REALM,
+ authority)
+ : l10n_util::GetStringFUTF16(IDS_LOGIN_DIALOG_DESCRIPTION, authority,
+ elided_realm);
+ }
password_manager::PasswordManager* password_manager =
handler->GetPasswordManagerForLogin();
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698