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

Unified Diff: remoting/host/disconnect_window_linux.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/disconnect_window_chromeos.cc ('k') | remoting/host/disconnect_window_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/disconnect_window_linux.cc
diff --git a/remoting/host/disconnect_window_linux.cc b/remoting/host/disconnect_window_linux.cc
index a113fa84188ddddc5398e15aa6a2abd1b673b6d2..524bbe0c7a91d75ff9a1d75fc0e25822e1839629 100644
--- a/remoting/host/disconnect_window_linux.cc
+++ b/remoting/host/disconnect_window_linux.cc
@@ -8,6 +8,7 @@
#include "base/compiler_specific.h"
#include "base/logging.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "remoting/base/string_resources.h"
@@ -288,8 +289,8 @@ gboolean DisconnectWindowGtk::OnButtonPress(GtkWidget* widget,
} // namespace
// static
-scoped_ptr<HostWindow> HostWindow::CreateDisconnectWindow() {
- return make_scoped_ptr(new DisconnectWindowGtk());
+std::unique_ptr<HostWindow> HostWindow::CreateDisconnectWindow() {
+ return base::WrapUnique(new DisconnectWindowGtk());
}
} // namespace remoting
« no previous file with comments | « remoting/host/disconnect_window_chromeos.cc ('k') | remoting/host/disconnect_window_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698