commit | e4ef7a62741de0e8a2df674ae2711bf87e15a921 | [log] [tgz] |
---|---|---|
author | Istiaque Ahmed <lazyboy@chromium.org> | Tue Aug 08 03:27:08 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Aug 08 03:27:08 2017 |
tree | 3a30db521b28b9f137c08ac3b94584bd53494f4c | |
parent | 9652ffa58183a00262d59b87d88d1eda8226c26b [diff] |
[TaskScheduler] Migrate rest of page_capture_api.cc Put ShareableFileReference's storage::ScopedFile on correct task runner from FILE thread. FILE thread is deprecated. The correct task runner here requires blocking IO and also requires TaskShutdownBehavior to BLOCKING_SHUTDOWN. BLOCKING_SHUTDOWN is necessary because ShareableFileReference creates a storage::ScopedFile object inside it whose responsibility is to delete file through ~storage::ScopedFile -> storage::ScopedFile::Reset -> (PostTask) base::DeleteFile. BLOCKING_SHUTDOWN will ensure that DeleteFile is always called when necessary. Bug: 689520 Change-Id: Ib1943fb20fbd014b8ecfd32877323d88e0fe6761 Reviewed-on: https://chromium-review.googlesource.com/604932 Reviewed-by: Devlin <rdevlin.cronin@chromium.org> Commit-Queue: Istiaque Ahmed <lazyboy@chromium.org> Cr-Commit-Position: refs/heads/master@{#492519}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .