chromeos: Check both original and absolute paths for file: scheme
https://codereview.chromium.org/2786583002
This commit is contained in:
parent
14c61a96af
commit
b69913975b
2 changed files with 6 additions and 3 deletions
|
@ -123,8 +123,10 @@ bool NetworkDelegate::OnCanSetCookie(const net::URLRequest& request,
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool NetworkDelegate::OnCanAccessFile(const net::URLRequest& request,
|
bool NetworkDelegate::OnCanAccessFile(
|
||||||
const base::FilePath& path) const {
|
const net::URLRequest& request,
|
||||||
|
const base::FilePath& original_path,
|
||||||
|
const base::FilePath& absolute_path) const {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,8 @@ class NetworkDelegate : public net::NetworkDelegate {
|
||||||
const std::string& cookie_line,
|
const std::string& cookie_line,
|
||||||
net::CookieOptions* options) override;
|
net::CookieOptions* options) override;
|
||||||
bool OnCanAccessFile(const net::URLRequest& request,
|
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(
|
bool OnCanEnablePrivacyMode(
|
||||||
const GURL& url,
|
const GURL& url,
|
||||||
const GURL& first_party_for_cookies) const override;
|
const GURL& first_party_for_cookies) const override;
|
||||||
|
|
Loading…
Reference in a new issue