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

Unified Diff: ui/ozone/platform/drm/host/drm_display_host_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/host/drm_device_handle.cc ('k') | ui/ozone/platform/drm/ozone_platform_gbm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/host/drm_display_host_manager.cc
diff --git a/ui/ozone/platform/drm/host/drm_display_host_manager.cc b/ui/ozone/platform/drm/host/drm_display_host_manager.cc
index f0b86c1f06f39d9a40acc392ead2d41dd1c6ff81..faa9ef0369fbfaf8c1d139b731e301d421eb81df 100644
--- a/ui/ozone/platform/drm/host/drm_display_host_manager.cc
+++ b/ui/ozone/platform/drm/host/drm_display_host_manager.cc
@@ -6,6 +6,7 @@
#include <fcntl.h>
#include <xf86drm.h>
+#include <utility>
#include "base/files/file_enumerator.h"
#include "base/thread_task_runner_handle.h"
@@ -46,7 +47,7 @@ void OpenDeviceOnWorkerThread(
scoped_ptr<DrmDeviceHandle> handle(new DrmDeviceHandle());
handle->Initialize(path);
reply_runner->PostTask(
- FROM_HERE, base::Bind(callback, path, base::Passed(handle.Pass())));
+ FROM_HERE, base::Bind(callback, path, base::Passed(std::move(handle))));
}
base::FilePath GetPrimaryDisplayCardPath() {
@@ -328,7 +329,7 @@ void DrmDisplayHostManager::OnChannelEstablished(
drm_devices_.clear();
drm_devices_.insert(primary_graphics_card_path_);
- scoped_ptr<DrmDeviceHandle> handle = primary_drm_device_handle_.Pass();
+ scoped_ptr<DrmDeviceHandle> handle = std::move(primary_drm_device_handle_);
if (!handle) {
base::ThreadRestrictions::ScopedAllowIO allow_io;
handle.reset(new DrmDeviceHandle());
« no previous file with comments | « ui/ozone/platform/drm/host/drm_device_handle.cc ('k') | ui/ozone/platform/drm/ozone_platform_gbm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698