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

Unified Diff: extensions/browser/extension_protocols.cc

Issue 690313002: Override IsRedirectResponse in extension protocols (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2171
Patch Set: Created 6 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/extensions/extension_resource_protocols.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_protocols.cc
diff --git a/extensions/browser/extension_protocols.cc b/extensions/browser/extension_protocols.cc
index 57dfe158a5d00e71a7e7effcf76c6d2125c54486..9de8eaf427587c5e45e35da8cd59eac190a1cfc9 100644
--- a/extensions/browser/extension_protocols.cc
+++ b/extensions/browser/extension_protocols.cc
@@ -214,6 +214,11 @@ class URLRequestExtensionJob : public net::URLRequestFileJob {
DCHECK(posted);
}
+ virtual bool IsRedirectResponse(GURL* location,
+ int* http_status_code) override {
+ return false;
+ }
+
virtual void SetExtraRequestHeaders(
const net::HttpRequestHeaders& headers) OVERRIDE {
// TODO(asargent) - we'll need to add proper support for range headers.
« no previous file with comments | « chrome/browser/extensions/extension_resource_protocols.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698