From b69913975bf7aa4f3e79225de2b002f6f24a1535 Mon Sep 17 00:00:00 2001 From: Aleksei Kuzmin Date: Mon, 21 Aug 2017 00:25:49 +0300 Subject: [PATCH] chromeos: Check both original and absolute paths for file: scheme https://codereview.chromium.org/2786583002 --- brightray/browser/network_delegate.cc | 6 ++++-- brightray/browser/network_delegate.h | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/brightray/browser/network_delegate.cc b/brightray/browser/network_delegate.cc index aca32af16b33..da7c56a738d8 100644 --- a/brightray/browser/network_delegate.cc +++ b/brightray/browser/network_delegate.cc @@ -123,8 +123,10 @@ bool NetworkDelegate::OnCanSetCookie(const net::URLRequest& request, return true; } -bool NetworkDelegate::OnCanAccessFile(const net::URLRequest& request, - const base::FilePath& path) const { +bool NetworkDelegate::OnCanAccessFile( + const net::URLRequest& request, + const base::FilePath& original_path, + const base::FilePath& absolute_path) const { return true; } diff --git a/brightray/browser/network_delegate.h b/brightray/browser/network_delegate.h index 6f9e13e2ea48..fb0eeada7e88 100644 --- a/brightray/browser/network_delegate.h +++ b/brightray/browser/network_delegate.h @@ -58,7 +58,8 @@ class NetworkDelegate : public net::NetworkDelegate { const std::string& cookie_line, net::CookieOptions* options) override; bool OnCanAccessFile(const net::URLRequest& request, - const base::FilePath& path) const override; + const base::FilePath& original_path, + const base::FilePath& absolute_path) const override; bool OnCanEnablePrivacyMode( const GURL& url, const GURL& first_party_for_cookies) const override;