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

Unified Diff: remoting/host/desktop_resizer_x11.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_win.cc ('k') | remoting/host/desktop_session_agent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/desktop_resizer_x11.cc
diff --git a/remoting/host/desktop_resizer_x11.cc b/remoting/host/desktop_resizer_x11.cc
index 63fe54240fa1b08bfde2132e3d8c4c3b5b93bd00..e59fa2c10f104023600bfe51e82fd6097f9fb62f 100644
--- a/remoting/host/desktop_resizer_x11.cc
+++ b/remoting/host/desktop_resizer_x11.cc
@@ -4,12 +4,13 @@
#include "remoting/host/desktop_resizer.h"
-#include <string.h>
-#include <X11/extensions/Xrandr.h>
#include <X11/Xlib.h>
+#include <X11/extensions/Xrandr.h>
+#include <string.h>
#include "base/command_line.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "remoting/base/logging.h"
#include "remoting/host/linux/x11_util.h"
@@ -324,8 +325,8 @@ void DesktopResizerX11::SwitchToMode(const char* name) {
CurrentTime, 0, 0, mode_id, 1, outputs, number_of_outputs);
}
-scoped_ptr<DesktopResizer> DesktopResizer::Create() {
- return make_scoped_ptr(new DesktopResizerX11);
+std::unique_ptr<DesktopResizer> DesktopResizer::Create() {
+ return base::WrapUnique(new DesktopResizerX11);
}
} // namespace remoting
« no previous file with comments | « remoting/host/desktop_resizer_win.cc ('k') | remoting/host/desktop_session_agent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698