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

Unified Diff: ui/ozone/platform/drm/gpu/drm_device_generator.cc

Issue 1528373002: Replace Pass() with std::move in ui/ozone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
Index: ui/ozone/platform/drm/gpu/drm_device_generator.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_device_generator.cc b/ui/ozone/platform/drm/gpu/drm_device_generator.cc
index d1bde616a2539a54e165085ac0facccf1d1715da..d85e0a42270c75f1f77cb8842d9c6eef2994ee7d 100644
--- a/ui/ozone/platform/drm/gpu/drm_device_generator.cc
+++ b/ui/ozone/platform/drm/gpu/drm_device_generator.cc
@@ -19,7 +19,7 @@ scoped_refptr<DrmDevice> DrmDeviceGenerator::CreateDevice(
base::File file,
bool is_primary_device) {
scoped_refptr<DrmDevice> drm =
- new DrmDevice(device_path, file.Pass(), is_primary_device);
+ new DrmDevice(device_path, std::move(file), is_primary_device);
if (drm->Initialize(false))
return drm;

Powered by Google App Engine
This is Rietveld 408576698