summaryrefslogtreecommitdiffstats
path: root/content/browser/browser_thread_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/browser_thread_impl.cc')
-rw-r--r--content/browser/browser_thread_impl.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/content/browser/browser_thread_impl.cc b/content/browser/browser_thread_impl.cc
index e046ce4..e2867c3 100644
--- a/content/browser/browser_thread_impl.cc
+++ b/content/browser/browser_thread_impl.cc
@@ -87,6 +87,14 @@ void BrowserThreadImpl::ShutdownThreadPool() {
globals.blocking_pool->Shutdown(kMaxNewShutdownBlockingTasks);
}
+// static
+void BrowserThreadImpl::FlushThreadPoolHelper() {
+ // We don't want to create a pool if none exists.
+ if (g_globals == NULL)
+ return;
+ g_globals.Get().blocking_pool->FlushForTesting();
+}
+
void BrowserThreadImpl::Init() {
BrowserThreadGlobals& globals = g_globals.Get();