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

Side by Side Diff: ui/ozone/platform/drm/host/drm_device_handle.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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/ozone/platform/drm/host/drm_device_handle.h" 5 #include "ui/ozone/platform/drm/host/drm_device_handle.h"
6 6
7 #include <fcntl.h> 7 #include <fcntl.h>
8 #include <xf86drm.h> 8 #include <xf86drm.h>
9 #include <xf86drmMode.h> 9 #include <xf86drmMode.h>
10 #include <utility>
10 11
11 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
12 #include "base/posix/eintr_wrapper.h" 13 #include "base/posix/eintr_wrapper.h"
13 #include "base/threading/thread_restrictions.h" 14 #include "base/threading/thread_restrictions.h"
14 15
15 namespace ui { 16 namespace ui {
16 17
17 namespace { 18 namespace {
18 19
19 bool Authenticate(int fd) { 20 bool Authenticate(int fd) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 59
59 VLOG(1) << "Succeeded authenticating " << path.value(); 60 VLOG(1) << "Succeeded authenticating " << path.value();
60 return true; 61 return true;
61 } 62 }
62 63
63 bool DrmDeviceHandle::IsValid() const { 64 bool DrmDeviceHandle::IsValid() const {
64 return file_.is_valid(); 65 return file_.is_valid();
65 } 66 }
66 67
67 base::ScopedFD DrmDeviceHandle::PassFD() { 68 base::ScopedFD DrmDeviceHandle::PassFD() {
68 return file_.Pass(); 69 return std::move(file_);
69 } 70 }
70 71
71 } // namespace ui 72 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/screen_manager_unittest.cc ('k') | ui/ozone/platform/drm/host/drm_display_host_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698