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

Unified Diff: chrome/browser/net/chrome_network_delegate.cc

Issue 1032063002: Enable 'First-Party-Only' cookies by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Friend. Created 5 years, 9 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: 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 fbc7d30fbd5646d9553c13933cb4abf187d1b185..7f87867c5c002e5f0cac4aad3d659700f0036d8b 100644
--- a/chrome/browser/net/chrome_network_delegate.cc
+++ b/chrome/browser/net/chrome_network_delegate.cc
@@ -9,7 +9,6 @@
#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"
@@ -39,7 +38,6 @@
#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"
@@ -59,6 +57,7 @@
#endif
#if defined(OS_CHROMEOS)
+#include "base/command_line.h"
#include "base/sys_info.h"
#include "chrome/common/chrome_switches.h"
#endif
@@ -292,9 +291,6 @@ ChromeNetworkDelegate::ChromeNetworkDelegate(
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(
@@ -705,10 +701,6 @@ 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,
« no previous file with comments | « chrome/browser/net/chrome_network_delegate.h ('k') | chrome/browser/net/chrome_network_delegate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698