Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(686)

Unified Diff: content/browser/device_monitor_mac.mm

Issue 590493002: Remove implicit conversions from scoped_refptr to T* in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/plugin_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
}
« no previous file with comments | « no previous file | content/browser/plugin_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698