chore: bump chromium to 63be48daea281d4f8c834c2e707a7 (master) (#19923)
This commit is contained in:
parent
104088b86b
commit
eb2d2264d0
124 changed files with 1736 additions and 1410 deletions
|
@ -311,8 +311,8 @@ void ShowItemInFolderOnWorkerThread(const base::FilePath& full_path) {
|
|||
namespace platform_util {
|
||||
|
||||
void ShowItemInFolder(const base::FilePath& full_path) {
|
||||
base::CreateCOMSTATaskRunnerWithTraits(
|
||||
{base::MayBlock(), base::TaskPriority::USER_BLOCKING})
|
||||
base::CreateCOMSTATaskRunner(
|
||||
{base::ThreadPool(), base::MayBlock(), base::TaskPriority::USER_BLOCKING})
|
||||
->PostTask(FROM_HERE,
|
||||
base::BindOnce(&ShowItemInFolderOnWorkerThread, full_path));
|
||||
}
|
||||
|
@ -328,8 +328,8 @@ void OpenExternal(const GURL& url,
|
|||
const OpenExternalOptions& options,
|
||||
OpenExternalCallback callback) {
|
||||
base::PostTaskAndReplyWithResult(
|
||||
base::CreateCOMSTATaskRunnerWithTraits(
|
||||
{base::MayBlock(), base::TaskPriority::USER_BLOCKING})
|
||||
base::CreateCOMSTATaskRunner({base::ThreadPool(), base::MayBlock(),
|
||||
base::TaskPriority::USER_BLOCKING})
|
||||
.get(),
|
||||
FROM_HERE, base::BindOnce(&OpenExternalOnWorkerThread, url, options),
|
||||
std::move(callback));
|
||||
|
|
|
@ -55,11 +55,10 @@ class Promise {
|
|||
|
||||
static void ResolvePromise(Promise<RT> promise, RT result) {
|
||||
if (!content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)) {
|
||||
base::PostTaskWithTraits(
|
||||
FROM_HERE, {content::BrowserThread::UI},
|
||||
base::BindOnce(
|
||||
[](Promise<RT> promise, RT result) { promise.Resolve(result); },
|
||||
std::move(promise), std::move(result)));
|
||||
base::PostTask(FROM_HERE, {content::BrowserThread::UI},
|
||||
base::BindOnce([](Promise<RT> promise,
|
||||
RT result) { promise.Resolve(result); },
|
||||
std::move(promise), std::move(result)));
|
||||
} else {
|
||||
promise.Resolve(result);
|
||||
}
|
||||
|
@ -67,7 +66,7 @@ class Promise {
|
|||
|
||||
static void ResolveEmptyPromise(Promise<RT> promise) {
|
||||
if (!content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)) {
|
||||
base::PostTaskWithTraits(
|
||||
base::PostTask(
|
||||
FROM_HERE, {content::BrowserThread::UI},
|
||||
base::BindOnce([](Promise<RT> promise) { promise.Resolve(); },
|
||||
std::move(promise)));
|
||||
|
@ -78,13 +77,12 @@ class Promise {
|
|||
|
||||
static void RejectPromise(Promise<RT> promise, base::StringPiece errmsg) {
|
||||
if (!content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)) {
|
||||
base::PostTaskWithTraits(
|
||||
FROM_HERE, {content::BrowserThread::UI},
|
||||
base::BindOnce(
|
||||
[](Promise<RT> promise, base::StringPiece err) {
|
||||
promise.RejectWithErrorMessage(err);
|
||||
},
|
||||
std::move(promise), std::move(errmsg)));
|
||||
base::PostTask(FROM_HERE, {content::BrowserThread::UI},
|
||||
base::BindOnce(
|
||||
[](Promise<RT> promise, base::StringPiece err) {
|
||||
promise.RejectWithErrorMessage(err);
|
||||
},
|
||||
std::move(promise), std::move(errmsg)));
|
||||
} else {
|
||||
promise.RejectWithErrorMessage(errmsg);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue