| Index: chrome/browser/extensions/api/cookies/cookies_api.cc
|
| diff --git a/chrome/browser/extensions/api/cookies/cookies_api.cc b/chrome/browser/extensions/api/cookies/cookies_api.cc
|
| index e9a502525025a131fc37f082b5ac48536965ef2a..48ce705fc4af09f87e383bdbf4a11875ab39198d 100644
|
| --- a/chrome/browser/extensions/api/cookies/cookies_api.cc
|
| +++ b/chrome/browser/extensions/api/cookies/cookies_api.cc
|
| @@ -382,9 +382,8 @@ void CookiesSetFunction::SetCookieOnIOThread() {
|
| }
|
|
|
| cookie_monster->SetCookieWithDetailsAsync(
|
| - url_,
|
| - parsed_args_->details.name.get() ? *parsed_args_->details.name
|
| - : std::string(),
|
| + url_, parsed_args_->details.name.get() ? *parsed_args_->details.name
|
| + : std::string(),
|
| parsed_args_->details.value.get() ? *parsed_args_->details.value
|
| : std::string(),
|
| parsed_args_->details.domain.get() ? *parsed_args_->details.domain
|
| @@ -399,7 +398,9 @@ void CookiesSetFunction::SetCookieOnIOThread() {
|
| // TODO(mkwst): If we decide to ship First-party-only cookies, we'll need
|
| // to extend the extension API to support them. For the moment, we'll set
|
| // all cookies as non-First-party-only.
|
| - false,
|
| + false, store_browser_context_->GetURLRequestContext()
|
| + ->network_delegate()
|
| + ->ExperimentalFeaturesEnabled(),
|
| net::COOKIE_PRIORITY_DEFAULT,
|
| base::Bind(&CookiesSetFunction::PullCookie, this));
|
| }
|
|
|