CookieStore::DeleteCookieAsync appears unused (outside a few tests), so remove it
https://chromium-review.googlesource.com/c/chromium/src/+/1456677
This commit is contained in:
parent
a7e2856bf0
commit
ccd4a3c80c
1 changed files with 10 additions and 3 deletions
|
@ -175,9 +175,16 @@ void RemoveCookieOnIO(scoped_refptr<net::URLRequestContextGetter> getter,
|
||||||
const GURL& url,
|
const GURL& url,
|
||||||
const std::string& name,
|
const std::string& name,
|
||||||
util::Promise promise) {
|
util::Promise promise) {
|
||||||
GetCookieStore(getter)->DeleteCookieAsync(
|
net::CookieDeletionInfo cookie_info;
|
||||||
url, name,
|
cookie_info.url = url;
|
||||||
base::BindOnce(util::Promise::ResolveEmptyPromise, std::move(promise)));
|
cookie_info.name = name;
|
||||||
|
GetCookieStore(getter)->DeleteAllMatchingInfoAsync(
|
||||||
|
std::move(cookie_info),
|
||||||
|
base::BindOnce(
|
||||||
|
[](util::Promise promise, uint32_t num_deleted) {
|
||||||
|
util::Promise::ResolveEmptyPromise(std::move(promise));
|
||||||
|
},
|
||||||
|
std::move(promise)));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Callback of SetCookie.
|
// Callback of SetCookie.
|
||||||
|
|
Loading…
Add table
Reference in a new issue