From 83632f15a9b00c88e30b7e20a52124aecddde4fc Mon Sep 17 00:00:00 2001 From: deepak1556 Date: Mon, 9 Apr 2018 01:38:24 +0530 Subject: [PATCH] Fix session restore with network service. https://chromium-review.googlesource.com/c/chromium/src/+/818486 --- brightray/browser/url_request_context_getter.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brightray/browser/url_request_context_getter.cc b/brightray/browser/url_request_context_getter.cc index 20dc992824..3d0c7b595a 100644 --- a/brightray/browser/url_request_context_getter.cc +++ b/brightray/browser/url_request_context_getter.cc @@ -27,6 +27,7 @@ #include "net/cert/ct_policy_enforcer.h" #include "net/cert/multi_log_ct_verifier.h" #include "net/cookies/cookie_monster.h" +#include "net/cookies/cookie_store.h" #include "net/dns/mapped_host_resolver.h" #include "net/http/http_auth_filter.h" #include "net/http/http_auth_handler_factory.h" @@ -212,8 +213,7 @@ net::URLRequestContext* URLRequestContextGetter::GetURLRequestContext() { : base_path_.Append(FILE_PATH_LITERAL("Cookies")); std::unique_ptr cookie_store = content::CreateCookieStore(content::CookieStoreConfig( - cookie_path, content::CookieStoreConfig::EPHEMERAL_SESSION_COOKIES, - nullptr)); + cookie_path, false, false, nullptr)); storage_->set_cookie_store(std::move(cookie_store)); // Set custom schemes that can accept cookies.