Index: content/browser/device_monitor_mac.mm |
diff --git a/content/browser/device_monitor_mac.mm b/content/browser/device_monitor_mac.mm |
index 2110eb1e8614ffabf90d2bf556b93aa0585130c4..57a556b81d259e4525391233ea105ee8fa83f705 100644 |
--- a/content/browser/device_monitor_mac.mm |
+++ b/content/browser/device_monitor_mac.mm |
@@ -297,7 +297,9 @@ void SuspendObserverDelegate::StartObserver( |
// Enumerate the devices in Device thread and post the observers start to be |
// done on UI thread. The devices array is retained in |device_thread| and |
// released in DoStartObserver(). |
- base::PostTaskAndReplyWithResult(device_thread, FROM_HERE, |
+ base::PostTaskAndReplyWithResult( |
+ device_thread.get(), |
+ FROM_HERE, |
base::BindBlock(^{ return [[AVCaptureDeviceGlue devices] retain]; }), |
base::Bind(&SuspendObserverDelegate::DoStartObserver, this)); |
} |
@@ -308,7 +310,9 @@ void SuspendObserverDelegate::OnDeviceChanged( |
// Enumerate the devices in Device thread and post the consolidation of the |
// new devices and the old ones to be done on UI thread. The devices array |
// is retained in |device_thread| and released in DoOnDeviceChanged(). |
- PostTaskAndReplyWithResult(device_thread, FROM_HERE, |
+ PostTaskAndReplyWithResult( |
+ device_thread.get(), |
+ FROM_HERE, |
base::BindBlock(^{ return [[AVCaptureDeviceGlue devices] retain]; }), |
base::Bind(&SuspendObserverDelegate::DoOnDeviceChanged, this)); |
} |