Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
file_bindings should be background priority
Browse files Browse the repository at this point in the history
  • Loading branch information
bridiver committed Dec 5, 2017
1 parent 9b17227 commit 4419f6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion brave/common/extensions/file_bindings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
}
Expand Down

0 comments on commit 4419f6e

Please sign in to comment.