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

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

Issue 1414313002: Allow dynamic updating of authentication policies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to cbentzel@'s comments. Created 5 years 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/browser/io_thread_unittest.cc ('k') | google_apis/gcm/tools/mcs_probe.cc » ('j') | 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 c0a8d320eb428d6e2f84de80d2bc54b90147ff60..a3459198102bd81ece9145f166972c8dd7665633 100644
--- a/chrome/browser/ui/login/login_prompt.cc
+++ b/chrome/browser/ui/login/login_prompt.cc
@@ -35,6 +35,7 @@
#include "net/base/auth.h"
#include "net/base/load_flags.h"
#include "net/base/net_util.h"
+#include "net/http/http_auth_scheme.h"
#include "net/http/http_transaction_factory.h"
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_context.h"
@@ -70,9 +71,10 @@ void ResetLoginHandlerForRequest(net::URLRequest* request) {
PasswordForm MakeInputForPasswordManager(const GURL& request_url,
net::AuthChallengeInfo* auth_info) {
PasswordForm dialog_form;
- if (base::LowerCaseEqualsASCII(auth_info->scheme, "basic")) {
+ if (base::LowerCaseEqualsASCII(auth_info->scheme, net::kBasicAuthScheme)) {
dialog_form.scheme = PasswordForm::SCHEME_BASIC;
- } else if (base::LowerCaseEqualsASCII(auth_info->scheme, "digest")) {
+ } else if (base::LowerCaseEqualsASCII(auth_info->scheme,
+ net::kDigestAuthScheme)) {
dialog_form.scheme = PasswordForm::SCHEME_DIGEST;
} else {
dialog_form.scheme = PasswordForm::SCHEME_OTHER;
« no previous file with comments | « chrome/browser/io_thread_unittest.cc ('k') | google_apis/gcm/tools/mcs_probe.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698