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;
|
||||
}
|
||||
if (errmsg.empty()) {
|
||||
RunCallbackInUI(
|
||||
base::PostTaskWithTraits(
|
||||
FROM_HERE, {BrowserThread::UI},
|
||||
base::BindOnce(util::Promise::ResolveEmptyPromise, std::move(promise)));
|
||||
} else {
|
||||
RunCallbackInUI(
|
||||
base::BindOnce(util::Promise::RejectPromise, std::move(promise), errmsg));
|
||||
base::PostTaskWithTraits(
|
||||
FROM_HERE, {BrowserThread::UI},
|
||||
base::BindOnce(util::Promise::RejectPromise, std::move(promise),
|
||||
std::move(errmsg)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue