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

Unified Diff: net/base/network_delegate.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: net/base/network_delegate.cc
diff --git a/net/base/network_delegate.cc b/net/base/network_delegate.cc
index 960f05ffa1c65a75220224725b1a82146ed5439b..216f9bec605e133d00d73a4692dfb416aad687cf 100644
--- a/net/base/network_delegate.cc
+++ b/net/base/network_delegate.cc
@@ -159,9 +159,10 @@ bool NetworkDelegate::CanSetCookie(const URLRequest& request,
}
bool NetworkDelegate::CanAccessFile(const URLRequest& request,
- const base::FilePath& path) const {
+ const base::FilePath& original_path,
+ const base::FilePath& absolute_path) const {
DCHECK(CalledOnValidThread());
- return OnCanAccessFile(request, path);
+ return OnCanAccessFile(request, original_path, absolute_path);
}
bool NetworkDelegate::CanEnablePrivacyMode(

Powered by Google App Engine
This is Rietveld 408576698