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

Unified Diff: remoting/host/continue_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/continue_window_chromeos.cc ('k') | remoting/host/continue_window_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/continue_window_linux.cc
diff --git a/remoting/host/continue_window_linux.cc b/remoting/host/continue_window_linux.cc
index e3d35c7259c44aac3aa93d5d0e50c9b3feef6e1b..edceac3a04c5fbffb19452d1de7088cbe628dc3a 100644
--- a/remoting/host/continue_window_linux.cc
+++ b/remoting/host/continue_window_linux.cc
@@ -2,14 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "remoting/host/continue_window.h"
+
#include <gtk/gtk.h>
#include "base/compiler_specific.h"
#include "base/logging.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "base/strings/utf_string_conversions.h"
#include "remoting/base/string_resources.h"
-#include "remoting/host/continue_window.h"
#include "ui/base/glib/glib_signal.h"
#include "ui/base/l10n/l10n_util.h"
@@ -115,8 +117,8 @@ void ContinueWindowGtk::OnResponse(GtkDialog* dialog, int response_id) {
}
// static
-scoped_ptr<HostWindow> HostWindow::CreateContinueWindow() {
- return make_scoped_ptr(new ContinueWindowGtk());
+std::unique_ptr<HostWindow> HostWindow::CreateContinueWindow() {
+ return base::WrapUnique(new ContinueWindowGtk());
}
} // namespace remoting
« no previous file with comments | « remoting/host/continue_window_chromeos.cc ('k') | remoting/host/continue_window_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698