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

Unified Diff: remoting/host/desktop_resizer_win.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_ozone.cc ('k') | remoting/host/desktop_resizer_x11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/desktop_resizer_win.cc
diff --git a/remoting/host/desktop_resizer_win.cc b/remoting/host/desktop_resizer_win.cc
index 32fec815aa8ab12215d3952921b2860ebecef891..626d727e34a0b260a3f71b181f6b570b38c90959 100644
--- a/remoting/host/desktop_resizer_win.cc
+++ b/remoting/host/desktop_resizer_win.cc
@@ -5,10 +5,12 @@
#include "remoting/host/desktop_resizer.h"
#include <windows.h>
+
#include <map>
#include "base/logging.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
namespace {
// TODO(jamiewalch): Use the correct DPI for the mode: http://crbug.com/172405.
@@ -185,8 +187,8 @@ ScreenResolution DesktopResizerWin::GetModeResolution(const DEVMODE& mode) {
webrtc::DesktopVector(kDefaultDPI, kDefaultDPI));
}
-scoped_ptr<DesktopResizer> DesktopResizer::Create() {
- return make_scoped_ptr(new DesktopResizerWin);
+std::unique_ptr<DesktopResizer> DesktopResizer::Create() {
+ return base::WrapUnique(new DesktopResizerWin);
}
} // namespace remoting
« no previous file with comments | « remoting/host/desktop_resizer_ozone.cc ('k') | remoting/host/desktop_resizer_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698