Index: chrome/browser/net/chrome_network_delegate.cc |
diff --git a/chrome/browser/net/chrome_network_delegate.cc b/chrome/browser/net/chrome_network_delegate.cc |
index 39e3626fbfdaa6c5f547c3a03846acb06af9693b..d6dc9d2e5391afefc7188a1aebe0cc803c705258 100644 |
--- a/chrome/browser/net/chrome_network_delegate.cc |
+++ b/chrome/browser/net/chrome_network_delegate.cc |
@@ -9,6 +9,7 @@ |
#include <vector> |
#include "base/base_paths.h" |
+#include "base/command_line.h" |
#include "base/debug/alias.h" |
#include "base/debug/dump_without_crashing.h" |
#include "base/debug/stack_trace.h" |
@@ -41,6 +42,7 @@ |
#include "content/public/browser/render_frame_host.h" |
#include "content/public/browser/render_view_host.h" |
#include "content/public/browser/resource_request_info.h" |
+#include "content/public/common/content_switches.h" |
#include "content/public/common/process_type.h" |
#include "net/base/host_port_pair.h" |
#include "net/base/load_flags.h" |
@@ -61,7 +63,6 @@ |
#endif |
#if defined(OS_CHROMEOS) |
-#include "base/command_line.h" |
#include "base/sys_info.h" |
#include "chrome/common/chrome_switches.h" |
#endif |
@@ -300,6 +301,9 @@ ChromeNetworkDelegate::ChromeNetworkDelegate( |
DCHECK(enable_referrers); |
extensions_delegate_.reset( |
ChromeExtensionsNetworkDelegate::Create(event_router)); |
+ experimental_web_platform_features_enabled_ = |
+ base::CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kEnableExperimentalWebPlatformFeatures); |
mmenke
2015/02/26 16:24:57
nit: Can we put this in the initializer list?
|
} |
ChromeNetworkDelegate::~ChromeNetworkDelegate() {} |
@@ -742,6 +746,10 @@ bool ChromeNetworkDelegate::OnCanEnablePrivacyMode( |
return privacy_mode; |
} |
+bool ChromeNetworkDelegate::OnFirstPartyOnlyCookieExperimentEnabled() const { |
+ return experimental_web_platform_features_enabled_; |
+} |
+ |
bool ChromeNetworkDelegate::OnCancelURLRequestWithPolicyViolatingReferrerHeader( |
const net::URLRequest& request, |
const GURL& target_url, |