Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Unified Diff: base/threading/sequenced_worker_pool.cc

Issue 18690003: Abort SandboxedUnpacker::RewriteImageFiles on browser shutdown (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed comment Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/threading/sequenced_worker_pool.h ('k') | chrome/browser/extensions/sandboxed_unpacker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/sequenced_worker_pool.cc
diff --git a/base/threading/sequenced_worker_pool.cc b/base/threading/sequenced_worker_pool.cc
index f98b23d5d6168a818178fe0c2e0a777edd618bd5..b97c5300f61c2334691ba1d9d32073235b19e9ca 100644
--- a/base/threading/sequenced_worker_pool.cc
+++ b/base/threading/sequenced_worker_pool.cc
@@ -289,6 +289,8 @@ class SequencedWorkerPool::Inner {
void Shutdown(int max_blocking_tasks_after_shutdown);
+ bool IsShutdownInProgress();
+
// Runs the worker loop on the background thread.
void ThreadLoop(Worker* this_worker);
@@ -678,6 +680,11 @@ void SequencedWorkerPool::Inner::Shutdown(
TimeTicks::Now() - shutdown_wait_begin);
}
+bool SequencedWorkerPool::Inner::IsShutdownInProgress() {
+ AutoLock lock(lock_);
+ return shutdown_called_;
+}
+
void SequencedWorkerPool::Inner::ThreadLoop(Worker* this_worker) {
{
AutoLock lock(lock_);
@@ -1236,4 +1243,8 @@ void SequencedWorkerPool::Shutdown(int max_new_blocking_tasks_after_shutdown) {
inner_->Shutdown(max_new_blocking_tasks_after_shutdown);
}
+bool SequencedWorkerPool::IsShutdownInProgress() {
+ return inner_->IsShutdownInProgress();
+}
+
} // namespace base
« no previous file with comments | « base/threading/sequenced_worker_pool.h ('k') | chrome/browser/extensions/sandboxed_unpacker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698