From 4419f6e84ce2586744a2f129cdcb553ce540df6b Mon Sep 17 00:00:00 2001 From: bridiver Date: Tue, 5 Dec 2017 09:50:21 -0700 Subject: [PATCH] file_bindings should be background priority --- brave/common/extensions/file_bindings.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/brave/common/extensions/file_bindings.cc b/brave/common/extensions/file_bindings.cc index 78ea80f47a..98d3e90781 100644 --- a/brave/common/extensions/file_bindings.cc +++ b/brave/common/extensions/file_bindings.cc @@ -41,7 +41,8 @@ void PostWriteCallback( FileBindings::FileBindings(extensions::ScriptContext* context) : extensions::ObjectBackedNativeHandler(context), file_task_runner_(base::CreateSequencedTaskRunnerWithTraits( - {base::MayBlock(), base::TaskShutdownBehavior::BLOCK_SHUTDOWN})) { + {base::MayBlock(), base::TaskPriority::BACKGROUND, + base::TaskShutdownBehavior::BLOCK_SHUTDOWN})) { RouteFunction("WriteImportantFile", base::Bind(&FileBindings::WriteImportantFile, base::Unretained(this))); }