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

Unified Diff: remoting/host/continue_window_mac.mm

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_linux.cc ('k') | remoting/host/continue_window_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/continue_window_mac.mm
diff --git a/remoting/host/continue_window_mac.mm b/remoting/host/continue_window_mac.mm
index cefb4942ee2a2e101427ed8af013b21db951e9c8..40fd2bb63da0ab192dd1473d775a034cac688d99 100644
--- a/remoting/host/continue_window_mac.mm
+++ b/remoting/host/continue_window_mac.mm
@@ -2,6 +2,8 @@
// 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"
+
#import <Cocoa/Cocoa.h>
#include "base/compiler_specific.h"
@@ -9,9 +11,9 @@
#include "base/mac/scoped_nsautorelease_pool.h"
#include "base/mac/scoped_nsobject.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "base/strings/sys_string_conversions.h"
#include "remoting/base/string_resources.h"
-#include "remoting/host/continue_window.h"
#include "ui/base/l10n/l10n_util_mac.h"
// Handles the ContinueWindow.
@@ -73,8 +75,8 @@ void ContinueWindowMac::HideUi() {
}
// static
-scoped_ptr<HostWindow> HostWindow::CreateContinueWindow() {
- return make_scoped_ptr(new ContinueWindowMac());
+std::unique_ptr<HostWindow> HostWindow::CreateContinueWindow() {
+ return base::WrapUnique(new ContinueWindowMac());
}
} // namespace remoting
« no previous file with comments | « remoting/host/continue_window_linux.cc ('k') | remoting/host/continue_window_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698