Index: components/storage_monitor/volume_mount_watcher_win.cc |
diff --git a/components/storage_monitor/volume_mount_watcher_win.cc b/components/storage_monitor/volume_mount_watcher_win.cc |
index 14225c6ffddb5db5484dccaf4bc1e33935680c96..fd3e6a5a4ad969eba086319ab445af72bc3485ad 100644 |
--- a/components/storage_monitor/volume_mount_watcher_win.cc |
+++ b/components/storage_monitor/volume_mount_watcher_win.cc |
@@ -360,8 +360,8 @@ void VolumeMountWatcherWin::Init() { |
// When VolumeMountWatcherWin is created, the message pumps are not running |
// so a posted task from the constructor would never run. Therefore, do all |
// the initializations here. |
- base::PostTaskAndReplyWithResult(task_runner_, FROM_HERE, |
- GetAttachedDevicesCallback(), |
+ base::PostTaskAndReplyWithResult( |
+ task_runner_.get(), FROM_HERE, GetAttachedDevicesCallback(), |
base::Bind(&VolumeMountWatcherWin::AddDevicesOnUIThread, |
weak_factory_.GetWeakPtr())); |
} |