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

Unified Diff: chrome/browser/extensions/extension_resource_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 | « no previous file | extensions/browser/extension_protocols.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_resource_protocols.cc
diff --git a/chrome/browser/extensions/extension_resource_protocols.cc b/chrome/browser/extensions/extension_resource_protocols.cc
index f940de652ece4c3bf0911ec3c8daa953ab9f3454..ff59c759c723356a6970e2e015342b56990afea0 100644
--- a/chrome/browser/extensions/extension_resource_protocols.cc
+++ b/chrome/browser/extensions/extension_resource_protocols.cc
@@ -35,6 +35,9 @@ class ExtensionResourcesJob : public net::URLRequestFileJob {
virtual void Start() OVERRIDE;
+ virtual bool IsRedirectResponse(GURL* location,
+ int* http_status_code) override;
+
protected:
virtual ~ExtensionResourcesJob() {}
@@ -57,6 +60,11 @@ void ExtensionResourcesJob::Start() {
weak_ptr_factory_.GetWeakPtr()));
}
+bool ExtensionResourcesJob::IsRedirectResponse(GURL* location,
+ int* http_status_code) {
+ return false;
+}
+
void ExtensionResourcesJob::ResolvePathDone(
const base::FilePath& resolved_path) {
DCHECK(thread_checker_.CalledOnValidThread());
« no previous file with comments | « no previous file | extensions/browser/extension_protocols.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698