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

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

Issue 14522010: remoting: Remove use of ALLOW_THIS_IN_INITIALIZER_LIST. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 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 | Annotate | Revision Log
« no previous file with comments | « remoting/host/host_change_notification_listener.cc ('k') | remoting/host/ipc_audio_capturer.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/host_window_proxy.h" 5 #include "remoting/host/host_window_proxy.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 core_->Start(client_session_control); 88 core_->Start(client_session_control);
89 } 89 }
90 90
91 HostWindowProxy::Core::Core( 91 HostWindowProxy::Core::Core(
92 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, 92 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
93 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, 93 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
94 scoped_ptr<HostWindow> host_window) 94 scoped_ptr<HostWindow> host_window)
95 : caller_task_runner_(caller_task_runner), 95 : caller_task_runner_(caller_task_runner),
96 ui_task_runner_(ui_task_runner), 96 ui_task_runner_(ui_task_runner),
97 host_window_(host_window.Pass()), 97 host_window_(host_window.Pass()),
98 weak_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) { 98 weak_factory_(this) {
99 DCHECK(caller_task_runner->BelongsToCurrentThread()); 99 DCHECK(caller_task_runner->BelongsToCurrentThread());
100 } 100 }
101 101
102 void HostWindowProxy::Core::Start( 102 void HostWindowProxy::Core::Start(
103 const base::WeakPtr<ClientSessionControl>& client_session_control) { 103 const base::WeakPtr<ClientSessionControl>& client_session_control) {
104 DCHECK(caller_task_runner_->BelongsToCurrentThread()); 104 DCHECK(caller_task_runner_->BelongsToCurrentThread());
105 DCHECK(!client_session_control_); 105 DCHECK(!client_session_control_);
106 DCHECK(client_session_control); 106 DCHECK(client_session_control);
107 107
108 client_session_control_ = client_session_control; 108 client_session_control_ = client_session_control;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 caller_task_runner_->PostTask( 168 caller_task_runner_->PostTask(
169 FROM_HERE, base::Bind(&Core::SetDisableInputs, this, disable_inputs)); 169 FROM_HERE, base::Bind(&Core::SetDisableInputs, this, disable_inputs));
170 return; 170 return;
171 } 171 }
172 172
173 if (client_session_control_) 173 if (client_session_control_)
174 client_session_control_->SetDisableInputs(disable_inputs); 174 client_session_control_->SetDisableInputs(disable_inputs);
175 } 175 }
176 176
177 } // namespace remoting 177 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/host_change_notification_listener.cc ('k') | remoting/host/ipc_audio_capturer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698