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

Unified Diff: remoting/host/desktop_resizer_mac.cc

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU Created 4 years, 8 months 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 | « remoting/host/desktop_resizer.h ('k') | remoting/host/desktop_resizer_ozone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/desktop_resizer_mac.cc
diff --git a/remoting/host/desktop_resizer_mac.cc b/remoting/host/desktop_resizer_mac.cc
index d3490a71c41aeda5493833fdba7ea2e1e6b551e4..82432ceb65f099d69c489ec3537b82b0df74e1ef 100644
--- a/remoting/host/desktop_resizer_mac.cc
+++ b/remoting/host/desktop_resizer_mac.cc
@@ -11,6 +11,7 @@
#include "base/mac/mac_util.h"
#include "base/mac/scoped_cftyperef.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "remoting/base/logging.h"
namespace {
@@ -167,8 +168,8 @@ bool DesktopResizerMac::GetSoleDisplayId(CGDirectDisplayID* display) {
return true;
}
-scoped_ptr<DesktopResizer> DesktopResizer::Create() {
- return make_scoped_ptr(new DesktopResizerMac);
+std::unique_ptr<DesktopResizer> DesktopResizer::Create() {
+ return base::WrapUnique(new DesktopResizerMac);
}
} // namespace remoting
« no previous file with comments | « remoting/host/desktop_resizer.h ('k') | remoting/host/desktop_resizer_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698