| Index: content/browser/renderer_host/render_widget_host_impl.cc
|
| diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
|
| index e840fa89c6edf6ab588edae9b4e3b70fa264e1c4..d91ad2bd9178c7c77fb4732abb8ad3eedadd2ae0 100644
|
| --- a/content/browser/renderer_host/render_widget_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_widget_host_impl.cc
|
| @@ -24,6 +24,7 @@
|
| #include "base/single_thread_task_runner.h"
|
| #include "base/strings/string_number_conversions.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| +#include "base/task_scheduler/post_task.h"
|
| #include "base/threading/thread_task_runner_handle.h"
|
| #include "base/trace_event/trace_event.h"
|
| #include "build/build_config.h"
|
| @@ -298,8 +299,9 @@ RenderWidgetHostImpl::RenderWidgetHostImpl(RenderWidgetHostDelegate* delegate,
|
| // Update the display color profile cache so that it is likely to be up to
|
| // date when the renderer process requests the color profile.
|
| if (gfx::ICCProfile::CachedProfilesNeedUpdate()) {
|
| - BrowserThread::PostBlockingPoolTask(
|
| - FROM_HERE,
|
| + base::PostTaskWithTraits(
|
| + FROM_HERE, base::TaskTraits().MayBlock().WithPriority(
|
| + base::TaskPriority::BACKGROUND),
|
| base::Bind(&gfx::ICCProfile::UpdateCachedProfilesOnBackgroundThread));
|
| }
|
| #endif
|
|
|