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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 1393193005: Implement $Secure- cookie prefix (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add test Created 5 years, 2 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/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index c607c2c97040ee9081cc620b3f1ec50cf680e72a..08ccd96cb3e8d9b6e94e8ac1b047701869bf37b5 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -642,7 +642,9 @@ void CreateUsbDeviceManager(
} // namespace
ChromeContentBrowserClient::ChromeContentBrowserClient()
- :
+ : experimental_web_platform_features_enabled_(
+ base::CommandLine::ForCurrentProcess()
+ ->HasSwitch(switches::kEnableExperimentalWebPlatformFeatures)),
jochen (gone - plz use gerrit) 2015/10/12 09:31:41 that's a content switch, you can just access it in
estark 2015/10/12 09:39:19 That might be a little weird for non-chrome conten
weak_factory_(this) {
#if defined(ENABLE_PLUGINS)
for (size_t i = 0; i < arraysize(kPredefinedAllowedDevChannelOrigins); ++i)
@@ -2697,6 +2699,10 @@ void ChromeContentBrowserClient::OverridePageVisibilityState(
}
}
+bool ChromeContentBrowserClient::ExperimentalCookieFeaturesEnabled() {
+ return experimental_web_platform_features_enabled_;
+}
+
#if defined(ENABLE_WEBRTC)
void ChromeContentBrowserClient::MaybeCopyDisableWebRtcEncryptionSwitch(
base::CommandLine* to_command_line,
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | chrome/browser/extensions/api/cookies/cookies_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698