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

Unified Diff: content/browser/media/android/media_resource_getter_impl.cc

Issue 1157333005: [net/http auth] Use strings to identify authentication schemes. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 | « chrome/browser/chromeos/login/profile_auth_data_unittest.cc ('k') | net/base/auth.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/media/android/media_resource_getter_impl.cc
diff --git a/content/browser/media/android/media_resource_getter_impl.cc b/content/browser/media/android/media_resource_getter_impl.cc
index 3afe5688d48d6f10fc3f75e240237e9965520860..566aa0fc9b98908f91929349bfd665550d6aa20e 100644
--- a/content/browser/media/android/media_resource_getter_impl.cc
+++ b/content/browser/media/android/media_resource_getter_impl.cc
@@ -215,7 +215,7 @@ net::AuthCredentials MediaResourceGetterTask::RequestAuthCredentials(
auth_cache->LookupByPath(url.GetOrigin(), url.path());
// TODO(qinmin): handle other auth schemes. See http://crbug.com/395219.
- if (entry && entry->scheme() == net::HttpAuth::AUTH_SCHEME_BASIC)
+ if (entry && entry->scheme() == "basic")
return entry->credentials();
else
return net::AuthCredentials();
« no previous file with comments | « chrome/browser/chromeos/login/profile_auth_data_unittest.cc ('k') | net/base/auth.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698