mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium version 72.0.3599.0 (#604791)
This commit is contained in:
@ -86,8 +86,11 @@ scoped_refptr<base::SingleThreadTaskRunner> CefTaskRunnerImpl::GetTaskRunner(
|
||||
|
||||
if (id >= 0 &&
|
||||
BrowserThread::IsThreadInitialized(static_cast<BrowserThread::ID>(id))) {
|
||||
// Specify USER_BLOCKING so that BrowserTaskExecutor::GetTaskRunner always
|
||||
// gives us the same TaskRunner object.
|
||||
return base::CreateSingleThreadTaskRunnerWithTraits(
|
||||
{static_cast<BrowserThread::ID>(id)});
|
||||
{static_cast<BrowserThread::ID>(id),
|
||||
base::TaskPriority::USER_BLOCKING});
|
||||
}
|
||||
|
||||
return NULL;
|
||||
@ -103,7 +106,10 @@ CefTaskRunnerImpl::GetCurrentTaskRunner() {
|
||||
BrowserThread::ID current_id;
|
||||
if (BrowserThread::GetCurrentThreadIdentifier(¤t_id) &&
|
||||
BrowserThread::IsThreadInitialized(current_id)) {
|
||||
task_runner = base::CreateSingleThreadTaskRunnerWithTraits({current_id});
|
||||
// Specify USER_BLOCKING so that BrowserTaskExecutor::GetTaskRunner always
|
||||
// gives us the same TaskRunner object.
|
||||
task_runner = base::CreateSingleThreadTaskRunnerWithTraits(
|
||||
{current_id, base::TaskPriority::USER_BLOCKING});
|
||||
}
|
||||
|
||||
if (!task_runner.get()) {
|
||||
|
Reference in New Issue
Block a user