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

Unified Diff: extensions/browser/extension_protocols.cc

Issue 1192013003: [Extension ServiceWorkers] Allow service worker registration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Took out extra reload Created 5 years, 5 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
Index: extensions/browser/extension_protocols.cc
diff --git a/extensions/browser/extension_protocols.cc b/extensions/browser/extension_protocols.cc
index 8ad21c1d4e0f45668b83ff50eb63ef0912b94fb7..4e8f9d9e3907ca80a251e2906c6ff0a6028448e9 100644
--- a/extensions/browser/extension_protocols.cc
+++ b/extensions/browser/extension_protocols.cc
@@ -195,6 +195,10 @@ class URLRequestExtensionJob : public net::URLRequestFileJob {
*info = response_info_;
}
+ // This always returns 200 because a URLRequestExtensionJob will only get
+ // created in MaybeCreateJob() if the file exists.
+ int GetResponseCode() const override { return 200; }
+
void Start() override {
request_timer_.reset(new base::ElapsedTimer());
base::FilePath* read_file_path = new base::FilePath;

Powered by Google App Engine
This is Rietveld 408576698