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

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: 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/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..c71633479e119ab3dfd489cf0e1cf12cc358e9ff 100644
--- a/ui/ozone/platform/drm/host/drm_display_host_manager.cc
+++ b/ui/ozone/platform/drm/host/drm_display_host_manager.cc
@@ -46,7 +46,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 +328,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());

Powered by Google App Engine
This is Rietveld 408576698