Commit 5433182d authored by Avi Drissman's avatar Avi Drissman Committed by Commit Bot

Move the Mac WebDragSource to use the TaskScheduler.

BUG=667892

Change-Id: I25c809655f4be1f170bcd07e25574766348c2de8
Reviewed-on: https://chromium-review.googlesource.com/575670Reviewed-by: default avatarErik Chen <erikchen@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#487343}
parent 9c083706
......@@ -16,9 +16,9 @@
#include "base/strings/string_util.h"
#include "base/strings/sys_string_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/task_scheduler/post_task.h"
#include "base/threading/thread.h"
#include "base/threading/thread_restrictions.h"
#include "content/browser/browser_thread_impl.h"
#include "content/browser/download/drag_download_file.h"
#include "content/browser/download/drag_download_util.h"
#include "content/browser/renderer_host/render_view_host_impl.h"
......@@ -318,11 +318,9 @@ void PromiseWriterHelper(const DropData& drop_data,
dragFileDownloader.get()));
} else {
// The writer will take care of closing and deletion.
BrowserThread::PostTask(BrowserThread::FILE,
FROM_HERE,
base::Bind(&PromiseWriterHelper,
*dropData_,
base::Passed(&file)));
base::PostTaskWithTraits(
FROM_HERE, {base::TaskPriority::USER_VISIBLE, base::MayBlock()},
base::Bind(&PromiseWriterHelper, *dropData_, base::Passed(&file)));
}
// The DragDownloadFile constructor may have altered the value of |filePath|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment