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

Side by Side Diff: remoting/host/setup/win/start_host_window.cc

Issue 14522010: remoting: Remove use of ALLOW_THIS_IN_INITIALIZER_LIST. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
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/setup/win/start_host_window.h" 5 #include "remoting/host/setup/win/start_host_window.h"
6 6
7 #include <atlbase.h> 7 #include <atlbase.h>
8 #include <atlwin.h> 8 #include <atlwin.h>
9 #include <windows.h> 9 #include <windows.h>
10 10
(...skipping 10 matching lines...) Expand all
21 21
22 StartHostWindow::StartHostWindow( 22 StartHostWindow::StartHostWindow(
23 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter) 23 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter)
24 : host_starter_(remoting::HostStarter::Create( 24 : host_starter_(remoting::HostStarter::Create(
25 GaiaUrls::GetInstance()->oauth2_token_url(), 25 GaiaUrls::GetInstance()->oauth2_token_url(),
26 remoting::ServiceUrls::GetInstance()->directory_hosts_url(), 26 remoting::ServiceUrls::GetInstance()->directory_hosts_url(),
27 url_request_context_getter)), 27 url_request_context_getter)),
28 consent_to_collect_data_(true), 28 consent_to_collect_data_(true),
29 mem_mgr_(GetProcessHeap()), 29 mem_mgr_(GetProcessHeap()),
30 string_mgr_(&mem_mgr_), 30 string_mgr_(&mem_mgr_),
31 ALLOW_THIS_IN_INITIALIZER_LIST(weak_ptr_factory_(this)), 31 weak_ptr_factory_(this),
32 weak_ptr_(weak_ptr_factory_.GetWeakPtr()) { 32 weak_ptr_(weak_ptr_factory_.GetWeakPtr()) {
33 } 33 }
34 34
35 void StartHostWindow::OnCancel(UINT code, int id, HWND control) { 35 void StartHostWindow::OnCancel(UINT code, int id, HWND control) {
36 EndDialog(IDCANCEL); 36 EndDialog(IDCANCEL);
37 } 37 }
38 38
39 void StartHostWindow::OnClose() { 39 void StartHostWindow::OnClose() {
40 EndDialog(IDCANCEL); 40 EndDialog(IDCANCEL);
41 } 41 }
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 } 97 }
98 } 98 }
99 99
100 std::string StartHostWindow::GetDlgItemString(int id) { 100 std::string StartHostWindow::GetDlgItemString(int id) {
101 CSimpleString str(L"", &string_mgr_); 101 CSimpleString str(L"", &string_mgr_);
102 GetDlgItemText(id, str); 102 GetDlgItemText(id, str);
103 return UTF16ToUTF8(str.GetString()); 103 return UTF16ToUTF8(str.GetString());
104 } 104 }
105 105
106 } // namespace remoting 106 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698