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

Side by Side Diff: remoting/host/continue_window_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 unified diff | Download patch
« no previous file with comments | « remoting/host/continue_window_mac.mm ('k') | remoting/host/curtain_mode.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/host/continue_window.h"
6
5 #include <windows.h> 7 #include <windows.h>
6 8
7 #include "base/bind.h" 9 #include "base/bind.h"
8 #include "base/callback.h" 10 #include "base/callback.h"
9 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
10 #include "base/location.h" 12 #include "base/location.h"
11 #include "base/logging.h" 13 #include "base/logging.h"
12 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/memory/ptr_util.h"
13 #include "base/single_thread_task_runner.h" 16 #include "base/single_thread_task_runner.h"
14 #include "base/strings/utf_string_conversions.h" 17 #include "base/strings/utf_string_conversions.h"
15 #include "base/win/current_module.h" 18 #include "base/win/current_module.h"
16 #include "remoting/host/continue_window.h"
17 #include "remoting/host/win/core_resource.h" 19 #include "remoting/host/win/core_resource.h"
18 20
19 namespace remoting { 21 namespace remoting {
20 22
21 namespace { 23 namespace {
22 24
23 class ContinueWindowWin : public ContinueWindow { 25 class ContinueWindowWin : public ContinueWindow {
24 public: 26 public:
25 ContinueWindowWin(); 27 ContinueWindowWin();
26 ~ContinueWindowWin() override; 28 ~ContinueWindowWin() override;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 123
122 if (hwnd_) { 124 if (hwnd_) {
123 ::DestroyWindow(hwnd_); 125 ::DestroyWindow(hwnd_);
124 hwnd_ = nullptr; 126 hwnd_ = nullptr;
125 } 127 }
126 } 128 }
127 129
128 } // namespace 130 } // namespace
129 131
130 // static 132 // static
131 scoped_ptr<HostWindow> HostWindow::CreateContinueWindow() { 133 std::unique_ptr<HostWindow> HostWindow::CreateContinueWindow() {
132 return make_scoped_ptr(new ContinueWindowWin()); 134 return base::WrapUnique(new ContinueWindowWin());
133 } 135 }
134 136
135 } // namespace remoting 137 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/continue_window_mac.mm ('k') | remoting/host/curtain_mode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698