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

Unified Diff: extensions/browser/extension_protocols.cc

Issue 2786583002: chromeos: Check both original and absolute paths for file: scheme (Closed)
Patch Set: disable checks in sub classes Created 3 years, 8 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 ef0c65a5eb69b7396123bb41f469e7e38aeef68d..91a490fe8bf070de21a3cee1567f68c5777a1733 100644
--- a/extensions/browser/extension_protocols.cc
+++ b/extensions/browser/extension_protocols.cc
@@ -288,6 +288,12 @@ class URLRequestExtensionJob : public net::URLRequestFileJob {
request_timer_->Elapsed());
}
+ // ...
+ bool CanAccessFile(const base::FilePath& original_path,
+ const base::FilePath& absolute_path) override {
+ return true;
+ }
+
void OnFilePathAndLastModifiedTimeRead(base::FilePath* read_file_path,
base::Time* last_modified_time) {
file_path_ = *read_file_path;

Powered by Google App Engine
This is Rietveld 408576698