<!--  As an open source project with a dedicated but small maintainer team, it can sometimes take a long time for issues to be addressed so please be patient and we will get back to you as soon as we can.
-->

### Preflight Checklist
<!-- Please ensure you've completed the following steps by replacing [ ] with [x]-->

* [x] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/master/CONTRIBUTING.md) for this project.
* [x] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md) that this project adheres to.
* [x] I have searched the issue tracker for an issue that matches the one I want to file, without success.

### Issue Details

* **Electron Version:**
  * 7.0.0
* **Operating System:**
  * Windows 10 (1903)
* **Last Known Working Electron version:**
  * 6.0.12

### Expected Behavior
session.defaultSession.cookies.set(cookie) should set a cookie that can be then retrieved using session.defaultSession.cookies.get(filter)

### Actual Behavior
session.defaultSession.cookies.set doesnt seem to be doing anything.

### To Reproduce
Gist:
This gist logs an empty array in 7.0.0, In 6.0.12, it logs the cookie object that was set:
https://gist.github.com/sgd2z/af6abf3cea4bddb1cd62a3e8265c359f

shell/browser/api/atom_api_cookies.cc
gin_helper::Promise<net::CookieList> promise,
                              const net::CookieStatusList& list,
                              const net::CookieStatusList& excluded_list) {
  FilterCookies(filter, std::move(promise),
                net::cookie_util::StripStatuses(list));
}
std::string InclusionStatusToString(
    net::CanonicalCookie::CookieInclusionStatus status) {
  if (status.HasExclusionReason(
          net::CanonicalCookie::CookieInclusionStatus::EXCLUDE_HTTP_ONLY))
    return "Failed to create httponly cookie";
  if (status.HasExclusionReason(
          net::CanonicalCookie::CookieInclusionStatus::EXCLUDE_SECURE_ONLY))
    return "Cannot create a secure cookie from an insecure URL";
  if (status.HasExclusionReason(net::CanonicalCookie::CookieInclusionStatus::
                                    EXCLUDE_FAILURE_TO_STORE))
    return "Failed to parse cookie";
  if (status.HasExclusionReason(
          net::CanonicalCookie::CookieInclusionStatus::EXCLUDE_INVALID_DOMAIN))
    return "Failed to get cookie domain";
  if (status.HasExclusionReason(
          net::CanonicalCookie::CookieInclusionStatus::EXCLUDE_INVALID_PREFIX))
    return "Failed because the cookie violated prefix rules.";
  if (status.HasExclusionReason(net::CanonicalCookie::CookieInclusionStatus::
                                    EXCLUDE_NONCOOKIEABLE_SCHEME))
    return "Cannot set cookie for current scheme";
  return "Setting cookie failed";
}
}  
Cookies::Cookies(v8::Isolate* isolate, AtomBrowserContext* browser_context)