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

Side by Side Diff: remoting/host/continue_window_win.cc

Issue 9720019: Use scoped_ptr<> to pass ownership in more places. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « remoting/host/continue_window_mac.mm ('k') | remoting/host/disconnect_window.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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" 5 #include "remoting/host/continue_window.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 HWND hwndDefault = GetDlgItem(hwnd_, IDC_CONTINUE_DEFAULT); 142 HWND hwndDefault = GetDlgItem(hwnd_, IDC_CONTINUE_DEFAULT);
143 CHECK(hwndDefault); 143 CHECK(hwndDefault);
144 SetWindowText(hwndDefault, strings.continue_button_text.c_str()); 144 SetWindowText(hwndDefault, strings.continue_button_text.c_str());
145 145
146 HWND hwndCancel = GetDlgItem(hwnd_, IDC_CONTINUE_CANCEL); 146 HWND hwndCancel = GetDlgItem(hwnd_, IDC_CONTINUE_CANCEL);
147 CHECK(hwndCancel); 147 CHECK(hwndCancel);
148 SetWindowText(hwndCancel, strings.stop_sharing_button_text.c_str()); 148 SetWindowText(hwndCancel, strings.stop_sharing_button_text.c_str());
149 } 149 }
150 150
151 ContinueWindow* ContinueWindow::Create() { 151 scoped_ptr<ContinueWindow> ContinueWindow::Create() {
152 return new ContinueWindowWin(); 152 return scoped_ptr<ContinueWindow>(new ContinueWindowWin());
153 } 153 }
154 154
155 } // namespace remoting 155 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/continue_window_mac.mm ('k') | remoting/host/disconnect_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698