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

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: add #include <utility> 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
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_device_generator.cc ('k') | ui/ozone/platform/drm/gpu/drm_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..c4f3304931b830a01f31c37314c569a36aea32f1 100644
--- a/ui/ozone/platform/drm/gpu/drm_device_manager.cc
+++ b/ui/ozone/platform/drm/gpu/drm_device_manager.cc
@@ -4,6 +4,8 @@
#include "ui/ozone/platform/drm/gpu/drm_device_manager.h"
+#include <utility>
+
#include "base/file_descriptor_posix.h"
#include "base/single_thread_task_runner.h"
#include "ui/ozone/platform/drm/gpu/drm_device.h"
@@ -29,8 +31,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 +47,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;
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_device_generator.cc ('k') | ui/ozone/platform/drm/gpu/drm_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698