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

Unified Diff: content/common/gpu/media/v4l2_video_device.cc

Issue 660883003: Use scoped_ptr::Pass instead of scoped_ptr::PassAs<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « content/child/web_gesture_curve_impl.cc ('k') | content/common/input/input_param_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/v4l2_video_device.cc
diff --git a/content/common/gpu/media/v4l2_video_device.cc b/content/common/gpu/media/v4l2_video_device.cc
index f62e264d806e3eb63925861368842434b5dedd65..58b935a4008fc6d8e9d14a7df5fc372f294edcbe 100644
--- a/content/common/gpu/media/v4l2_video_device.cc
+++ b/content/common/gpu/media/v4l2_video_device.cc
@@ -18,11 +18,11 @@ scoped_ptr<V4L2Device> V4L2Device::Create(Type type) {
scoped_ptr<ExynosV4L2Device> exynos_device(new ExynosV4L2Device(type));
if (exynos_device->Initialize())
- return exynos_device.PassAs<V4L2Device>();
+ return exynos_device.Pass();
scoped_ptr<TegraV4L2Device> tegra_device(new TegraV4L2Device(type));
if (tegra_device->Initialize())
- return tegra_device.PassAs<V4L2Device>();
+ return tegra_device.Pass();
LOG(ERROR) << "Failed to create V4L2Device";
return scoped_ptr<V4L2Device>();
« no previous file with comments | « content/child/web_gesture_curve_impl.cc ('k') | content/common/input/input_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698