summaryrefslogtreecommitdiffstats
path: root/components/storage_monitor/volume_mount_watcher_win.h
diff options
context:
space:
mode:
authortommycli <tommycli@chromium.org>2015-03-03 12:41:01 -0800
committerCommit bot <commit-bot@chromium.org>2015-03-03 20:41:40 +0000
commit385e394071526ea23c76b12bf9b901315f562c97 (patch)
tree61186a1baced85cf0a832f566fc583e48cb2d7ea /components/storage_monitor/volume_mount_watcher_win.h
parent3611ddb22c7ae6d15816ecc9f2b4326c9f51d511 (diff)
downloadchromium_src-385e394071526ea23c76b12bf9b901315f562c97.zip
chromium_src-385e394071526ea23c76b12bf9b901315f562c97.tar.gz
chromium_src-385e394071526ea23c76b12bf9b901315f562c97.tar.bz2
Hotlist Slow: Remove extra thread pool created by VolumeMountWatcherWin.
BUG=458541 Review URL: https://codereview.chromium.org/974633002 Cr-Commit-Position: refs/heads/master@{#318936}
Diffstat (limited to 'components/storage_monitor/volume_mount_watcher_win.h')
-rw-r--r--components/storage_monitor/volume_mount_watcher_win.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/components/storage_monitor/volume_mount_watcher_win.h b/components/storage_monitor/volume_mount_watcher_win.h
index 48f3741..bf351db 100644
--- a/components/storage_monitor/volume_mount_watcher_win.h
+++ b/components/storage_monitor/volume_mount_watcher_win.h
@@ -16,7 +16,6 @@
#include "base/memory/weak_ptr.h"
#include "base/sequenced_task_runner.h"
#include "base/strings/string16.h"
-#include "base/threading/sequenced_worker_pool.h"
#include "components/storage_monitor/storage_info.h"
#include "components/storage_monitor/storage_monitor.h"
@@ -90,11 +89,8 @@ class VolumeMountWatcherWin {
virtual GetAttachedDevicesCallbackType GetAttachedDevicesCallback() const;
virtual GetDeviceDetailsCallbackType GetDeviceDetailsCallback() const;
- // Worker pool used to collect device information. Used because some
- // devices freeze workers trying to get device info, resulting in
- // shutdown hangs.
- scoped_refptr<base::SequencedWorkerPool> device_info_worker_pool_;
- scoped_refptr<base::SequencedTaskRunner> task_runner_;
+ // Used for device info calls that may take a long time.
+ scoped_refptr<base::SequencedTaskRunner> device_info_task_runner_;
private:
friend class TestVolumeMountWatcherWin;