[chromium-style] Complex class/struct needs an explicit out-of-line copy constructor.
This commit is contained in:
parent
30f1d0991b
commit
6d0ac6593c
1 changed files with 9 additions and 5 deletions
|
@ -27,6 +27,7 @@
|
|||
#include "net/cert/ct_log_verifier.h"
|
||||
#include "net/cert/ct_policy_enforcer.h"
|
||||
#include "net/cert/multi_log_ct_verifier.h"
|
||||
#include "net/cookies/cookie_monster.h"
|
||||
#include "net/dns/mapped_host_resolver.h"
|
||||
#include "net/http/http_auth_filter.h"
|
||||
#include "net/http/http_auth_handler_factory.h"
|
||||
|
@ -208,13 +209,16 @@ net::URLRequestContext* URLRequestContextGetter::GetURLRequestContext() {
|
|||
auto cookie_path = in_memory_
|
||||
? base::FilePath()
|
||||
: base_path_.Append(FILE_PATH_LITERAL("Cookies"));
|
||||
auto cookie_config = content::CookieStoreConfig(
|
||||
cookie_path, content::CookieStoreConfig::EPHEMERAL_SESSION_COOKIES,
|
||||
nullptr);
|
||||
cookie_config.cookieable_schemes = delegate_->GetCookieableSchemes();
|
||||
std::unique_ptr<net::CookieStore> cookie_store =
|
||||
content::CreateCookieStore(cookie_config);
|
||||
content::CreateCookieStore(content::CookieStoreConfig(
|
||||
cookie_path, content::CookieStoreConfig::EPHEMERAL_SESSION_COOKIES,
|
||||
nullptr));
|
||||
storage_->set_cookie_store(std::move(cookie_store));
|
||||
|
||||
// Set custom schemes that can accept cookies.
|
||||
net::CookieMonster* cookie_monster =
|
||||
static_cast<net::CookieMonster*>(url_request_context_->cookie_store());
|
||||
cookie_monster->SetCookieableSchemes(delegate_->GetCookieableSchemes());
|
||||
// Cookie store will outlive notifier by order of declaration
|
||||
// in the header.
|
||||
cookie_change_sub_ =
|
||||
|
|
Loading…
Reference in a new issue