chore: fix linting issues in atom_api_cookies.cc

This commit is contained in:
Samuel Attard 2019-03-07 18:25:40 -08:00
parent a46b8efc8a
commit e185057ef9

View file

@ -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)));
}
}