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

Unified Diff: ui/ozone/platform/drm/gpu/drm_device_manager.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_manager.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_device_manager.cc b/ui/ozone/platform/drm/gpu/drm_device_manager.cc
index c366f65320b1d22a2c037c5da4c7af0289b98cfa..87a24aa5c9ff01dd9a70ae6ad01359375941879b 100644
--- a/ui/ozone/platform/drm/gpu/drm_device_manager.cc
+++ b/ui/ozone/platform/drm/gpu/drm_device_manager.cc
@@ -29,8 +29,7 @@ class FindByDevicePath {
DrmDeviceManager::DrmDeviceManager(
scoped_ptr<DrmDeviceGenerator> drm_device_generator)
- : drm_device_generator_(drm_device_generator.Pass()) {
-}
+ : drm_device_generator_(std::move(drm_device_generator)) {}
DrmDeviceManager::~DrmDeviceManager() {
DCHECK(drm_device_map_.empty());
@@ -46,8 +45,8 @@ bool DrmDeviceManager::AddDrmDevice(const base::FilePath& path,
return false;
}
- scoped_refptr<DrmDevice> device =
- drm_device_generator_->CreateDevice(path, file.Pass(), !primary_device_);
+ scoped_refptr<DrmDevice> device = drm_device_generator_->CreateDevice(
+ path, std::move(file), !primary_device_);
if (!device) {
LOG(ERROR) << "Could not initialize DRM device for " << path.value();
return false;

Powered by Google App Engine
This is Rietveld 408576698