chromeos: Check both original and absolute paths for file: scheme

https://codereview.chromium.org/2786583002
This commit is contained in:
Aleksei Kuzmin 2017-08-21 00:25:49 +03:00 committed by Cheng Zhao
parent 14c61a96af
commit b69913975b
2 changed files with 6 additions and 3 deletions

View file

@ -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;
}

View file

@ -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;