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

Unified Diff: content/shell/browser/shell_network_delegate.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: content/shell/browser/shell_network_delegate.cc
diff --git a/content/shell/browser/shell_network_delegate.cc b/content/shell/browser/shell_network_delegate.cc
index 633fb46890556de5cbc03d1e53ce2905c0227625..135bba36d0e302d0a7fc6aaeb3ff57246304acb9 100644
--- a/content/shell/browser/shell_network_delegate.cc
+++ b/content/shell/browser/shell_network_delegate.cc
@@ -4,6 +4,8 @@
#include "content/shell/browser/shell_network_delegate.h"
+#include "base/command_line.h"
+#include "content/public/common/content_switches.h"
#include "net/base/net_errors.h"
#include "net/base/static_cookie_policy.h"
#include "net/url_request/url_request.h"
@@ -114,4 +116,9 @@ bool ShellNetworkDelegate::OnCanThrottleRequest(
return false;
}
+bool ShellNetworkDelegate::OnFirstPartyOnlyCookieExperimentEnabled() const {
+ return base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableExperimentalWebPlatformFeatures);
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698