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

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

Issue 650453003: Override IsRedirectResponse in extension protocols (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 965f3dee0c7ac31026fc1fe893be7dc37d9eb23d..f719adb3b40bb4b91494af08063a839f8129bd36 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