Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(725)

Unified Diff: net/url_request/url_request_test_util.cc

Issue 940373002: First-Party Cookies: Wire it up as an experimental web platform feature (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@first-party
Patch Set: Feedback. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/url_request/url_request_test_util.cc
diff --git a/net/url_request/url_request_test_util.cc b/net/url_request/url_request_test_util.cc
index 107da7858a33b3c9f073dacb177ea0dd34aca564..ebccd876de7cdb6761d2a11dcc536c38b9208b1a 100644
--- a/net/url_request/url_request_test_util.cc
+++ b/net/url_request/url_request_test_util.cc
@@ -322,6 +322,7 @@ TestNetworkDelegate::TestNetworkDelegate()
has_load_timing_info_before_auth_(false),
can_access_files_(true),
can_throttle_requests_(true),
+ first_party_only_cookies_enabled_(false),
cancel_request_with_policy_violating_referrer_(false),
will_be_intercepted_on_next_error_(false) {
}
@@ -603,6 +604,10 @@ bool TestNetworkDelegate::OnCanThrottleRequest(
return can_throttle_requests_;
}
+bool TestNetworkDelegate::OnFirstPartyOnlyCookieExperimentEnabled() const {
+ return first_party_only_cookies_enabled_;
+}
+
bool TestNetworkDelegate::OnCancelURLRequestWithPolicyViolatingReferrerHeader(
const URLRequest& request,
const GURL& target_url,

Powered by Google App Engine
This is Rietveld 408576698