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

Unified Diff: chrome/browser/extensions/extension_webrequest_api.cc

Issue 7982023: Fixed ExtraInfoSpec flags for webRequest.onAuthRequired (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Also improve browser tests Created 9 years, 3 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 | « no previous file | chrome/test/data/extensions/api_test/webrequest/test_complex.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_webrequest_api.cc
diff --git a/chrome/browser/extensions/extension_webrequest_api.cc b/chrome/browser/extensions/extension_webrequest_api.cc
index 36ee72c7d9e8df807b8ae64a070ebc63077957b4..cf13a5290c116aaa7377380c0de81a0123ae10d9 100644
--- a/chrome/browser/extensions/extension_webrequest_api.cc
+++ b/chrome/browser/extensions/extension_webrequest_api.cc
@@ -620,7 +620,7 @@ void ExtensionWebRequestEventRouter::OnAuthRequired(
challenger->SetInteger(keys::kPortKey, auth_info.challenger.port());
dict->Set(keys::kChallengerKey, challenger);
dict->SetDouble(keys::kTimeStampKey, time.ToDoubleT() * 1000);
- if (extra_info_spec & ExtraInfoSpec::REQUEST_HEADERS) {
+ if (extra_info_spec & ExtraInfoSpec::RESPONSE_HEADERS) {
dict->Set(keys::kResponseHeadersKey,
GetResponseHeadersList(request->response_headers()));
}
« no previous file with comments | « no previous file | chrome/test/data/extensions/api_test/webrequest/test_complex.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698