Implement NetworkDelegate::OnFirstPartyOnlyCookieExperimentEnabled

This commit is contained in:
Cheng Zhao 2015-05-22 14:56:28 +08:00
parent 66d49a5241
commit 0f64da9dfc
2 changed files with 5 additions and 0 deletions

View file

@ -112,6 +112,10 @@ bool NetworkDelegate::OnCanEnablePrivacyMode(
return false;
}
bool NetworkDelegate::OnFirstPartyOnlyCookieExperimentEnabled() const {
return true;
}
bool NetworkDelegate::OnCancelURLRequestWithPolicyViolatingReferrerHeader(
const net::URLRequest& request,
const GURL& target_url,

View file

@ -62,6 +62,7 @@ class NetworkDelegate : public net::NetworkDelegate {
bool OnCanEnablePrivacyMode(
const GURL& url,
const GURL& first_party_for_cookies) const override;
bool OnFirstPartyOnlyCookieExperimentEnabled() const override;
bool OnCancelURLRequestWithPolicyViolatingReferrerHeader(
const net::URLRequest& request,
const GURL& target_url,