| 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 7f87867c5c002e5f0cac4aad3d659700f0036d8b..fbc7d30fbd5646d9553c13933cb4abf187d1b185 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"
|
| @@ -38,6 +39,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"
|
| @@ -57,7 +59,6 @@
|
| #endif
|
|
|
| #if defined(OS_CHROMEOS)
|
| -#include "base/command_line.h"
|
| #include "base/sys_info.h"
|
| #include "chrome/common/chrome_switches.h"
|
| #endif
|
| @@ -291,6 +292,9 @@
|
| url_blacklist_manager_(NULL),
|
| #endif
|
| domain_reliability_monitor_(NULL),
|
| + experimental_web_platform_features_enabled_(
|
| + base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kEnableExperimentalWebPlatformFeatures)),
|
| first_request_(true) {
|
| DCHECK(enable_referrers);
|
| extensions_delegate_.reset(
|
| @@ -701,6 +705,10 @@
|
| return privacy_mode;
|
| }
|
|
|
| +bool ChromeNetworkDelegate::OnFirstPartyOnlyCookieExperimentEnabled() const {
|
| + return experimental_web_platform_features_enabled_;
|
| +}
|
| +
|
| bool ChromeNetworkDelegate::OnCancelURLRequestWithPolicyViolatingReferrerHeader(
|
| const net::URLRequest& request,
|
| const GURL& target_url,
|
|
|