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

Unified Diff: extensions/browser/extension_protocols.cc

Issue 2786583002: chromeos: Check both original and absolute paths for file: scheme (Closed)
Patch Set: remove dcheck Created 3 years, 7 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 | « content/shell/browser/shell_network_delegate.cc ('k') | headless/lib/browser/headless_network_delegate.h » ('j') | 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 c1ea0a9b3e33ae7f1656ae6bb8c9fc3018f013a2..cc5d7048706cf7378e491f4af1c15c15100118a3 100644
--- a/extensions/browser/extension_protocols.cc
+++ b/extensions/browser/extension_protocols.cc
@@ -284,6 +284,13 @@ class URLRequestExtensionJob : public net::URLRequestFileJob {
request_timer_->Elapsed());
}
+ bool CanAccessFile(const base::FilePath& original_path,
+ const base::FilePath& absolute_path) override {
+ // The access checks for the file are performed before the job is
+ // created, so we should know that this is safe.
+ return true;
+ }
+
void OnFilePathAndLastModifiedTimeRead(base::FilePath* read_file_path,
base::Time* last_modified_time) {
file_path_ = *read_file_path;
« no previous file with comments | « content/shell/browser/shell_network_delegate.cc ('k') | headless/lib/browser/headless_network_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698