| Index: chrome/browser/storage_monitor/storage_monitor_win.h
|
| diff --git a/chrome/browser/storage_monitor/storage_monitor_win.h b/chrome/browser/storage_monitor/storage_monitor_win.h
|
| index 6472c0df6a2e2383f377c52229fb245511fe87c6..fd876d52247c75195adad56d96b99dc0ecd0def3 100644
|
| --- a/chrome/browser/storage_monitor/storage_monitor_win.h
|
| +++ b/chrome/browser/storage_monitor/storage_monitor_win.h
|
| @@ -25,10 +25,11 @@ class VolumeMountWatcherWin;
|
|
|
| class StorageMonitorWin : public StorageMonitor {
|
| public:
|
| - // Creates an instance of StorageMonitorWin. Should only be called by browser
|
| - // start up code. Use GetInstance() instead.
|
| - static StorageMonitorWin* Create();
|
| -
|
| + // To support unit tests, this constructor takes |volume_mount_watcher| and
|
| + // |portable_device_watcher| objects. These params are either constructed in
|
| + // unit tests or in StorageMonitorWin::Create() function.
|
| + StorageMonitorWin(VolumeMountWatcherWin* volume_mount_watcher,
|
| + PortableDeviceWatcherWin* portable_device_watcher);
|
| virtual ~StorageMonitorWin();
|
|
|
| // Must be called after the file thread is created.
|
| @@ -50,12 +51,6 @@ class StorageMonitorWin : public StorageMonitor {
|
| class PortableDeviceNotifications;
|
| friend class test::TestStorageMonitorWin;
|
|
|
| - // To support unit tests, this constructor takes |volume_mount_watcher| and
|
| - // |portable_device_watcher| objects. These params are either constructed in
|
| - // unit tests or in StorageMonitorWin::Create() function.
|
| - StorageMonitorWin(VolumeMountWatcherWin* volume_mount_watcher,
|
| - PortableDeviceWatcherWin* portable_device_watcher);
|
| -
|
| // Gets the removable storage information given a |device_path|. On success,
|
| // returns true and fills in |info|.
|
| bool GetDeviceInfo(const base::FilePath& device_path,
|
|
|