chore: fix linting issues in atom_api_cookies.cc
This commit is contained in:
parent
a46b8efc8a
commit
e185057ef9
1 changed files with 6 additions and 3 deletions
|
@ -220,11 +220,14 @@ void OnSetCookie(util::Promise promise,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (errmsg.empty()) {
|
if (errmsg.empty()) {
|
||||||
RunCallbackInUI(
|
base::PostTaskWithTraits(
|
||||||
|
FROM_HERE, {BrowserThread::UI},
|
||||||
base::BindOnce(util::Promise::ResolveEmptyPromise, std::move(promise)));
|
base::BindOnce(util::Promise::ResolveEmptyPromise, std::move(promise)));
|
||||||
} else {
|
} else {
|
||||||
RunCallbackInUI(
|
base::PostTaskWithTraits(
|
||||||
base::BindOnce(util::Promise::RejectPromise, std::move(promise), errmsg));
|
FROM_HERE, {BrowserThread::UI},
|
||||||
|
base::BindOnce(util::Promise::RejectPromise, std::move(promise),
|
||||||
|
std::move(errmsg)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue