From 0f64da9dfc0fc40c9e21b262651d3e578c20006b Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 22 May 2015 14:56:28 +0800 Subject: [PATCH] Implement NetworkDelegate::OnFirstPartyOnlyCookieExperimentEnabled --- brightray/browser/network_delegate.cc | 4 ++++ brightray/browser/network_delegate.h | 1 + 2 files changed, 5 insertions(+) diff --git a/brightray/browser/network_delegate.cc b/brightray/browser/network_delegate.cc index a065a6ebf06..9d586d72cf5 100644 --- a/brightray/browser/network_delegate.cc +++ b/brightray/browser/network_delegate.cc @@ -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, diff --git a/brightray/browser/network_delegate.h b/brightray/browser/network_delegate.h index fcfbdbb8927..55835622ac2 100644 --- a/brightray/browser/network_delegate.h +++ b/brightray/browser/network_delegate.h @@ -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,