Commit 7bf87b35 authored by Will Harris's avatar Will Harris Committed by Commit Bot

Disable cookie encryption on Windows for headless mode.

This matches behavior on macOS.

BUG=1050905

Change-Id: I29ce0f7e7f02377a25ad0fb9b15f7a6373410fb7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2106478Reviewed-by: default avatarAndrey Kosyakov <caseq@chromium.org>
Commit-Queue: Will Harris <wfh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#751131}
parent 6c8617da
...@@ -182,9 +182,16 @@ HeadlessRequestContextManager::CreateSystemContext( ...@@ -182,9 +182,16 @@ HeadlessRequestContextManager::CreateSystemContext(
HeadlessRequestContextManager::HeadlessRequestContextManager( HeadlessRequestContextManager::HeadlessRequestContextManager(
const HeadlessBrowserContextOptions* options, const HeadlessBrowserContextOptions* options,
base::FilePath user_data_path) base::FilePath user_data_path)
: cookie_encryption_enabled_( :
// On Windows, Cookie encryption requires access to local_state prefs, which are
// unavailable.
#if defined(OS_WIN)
cookie_encryption_enabled_(false),
#else
cookie_encryption_enabled_(
!base::CommandLine::ForCurrentProcess()->HasSwitch( !base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableCookieEncryption)), switches::kDisableCookieEncryption)),
#endif
user_data_path_(std::move(user_data_path)), user_data_path_(std::move(user_data_path)),
accept_language_(options->accept_language()), accept_language_(options->accept_language()),
user_agent_(options->user_agent()), user_agent_(options->user_agent()),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment