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

Side by Side Diff: remoting/host/chromoting_host.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/client/plugin/pepper_token_fetcher.cc ('k') | remoting/host/client_session.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 (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/chromoting_host.h" 5 #include "remoting/host/chromoting_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 video_capture_task_runner_(video_capture_task_runner), 74 video_capture_task_runner_(video_capture_task_runner),
75 video_encode_task_runner_(video_encode_task_runner), 75 video_encode_task_runner_(video_encode_task_runner),
76 network_task_runner_(network_task_runner), 76 network_task_runner_(network_task_runner),
77 ui_task_runner_(ui_task_runner), 77 ui_task_runner_(ui_task_runner),
78 signal_strategy_(signal_strategy), 78 signal_strategy_(signal_strategy),
79 state_(kInitial), 79 state_(kInitial),
80 protocol_config_(protocol::CandidateSessionConfig::CreateDefault()), 80 protocol_config_(protocol::CandidateSessionConfig::CreateDefault()),
81 login_backoff_(&kDefaultBackoffPolicy), 81 login_backoff_(&kDefaultBackoffPolicy),
82 authenticating_client_(false), 82 authenticating_client_(false),
83 reject_authenticating_client_(false), 83 reject_authenticating_client_(false),
84 ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) { 84 weak_factory_(this) {
85 DCHECK(signal_strategy); 85 DCHECK(signal_strategy);
86 DCHECK(network_task_runner_->BelongsToCurrentThread()); 86 DCHECK(network_task_runner_->BelongsToCurrentThread());
87 87
88 if (!desktop_environment_factory_->SupportsAudioCapture()) { 88 if (!desktop_environment_factory_->SupportsAudioCapture()) {
89 protocol::CandidateSessionConfig::DisableAudioChannel( 89 protocol::CandidateSessionConfig::DisableAudioChannel(
90 protocol_config_.get()); 90 protocol_config_.get());
91 } 91 }
92 } 92 }
93 93
94 ChromotingHost::~ChromotingHost() { 94 ChromotingHost::~ChromotingHost() {
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 for (std::vector<base::Closure>::iterator it = shutdown_tasks_.begin(); 368 for (std::vector<base::Closure>::iterator it = shutdown_tasks_.begin();
369 it != shutdown_tasks_.end(); ++it) { 369 it != shutdown_tasks_.end(); ++it) {
370 it->Run(); 370 it->Run();
371 } 371 }
372 shutdown_tasks_.clear(); 372 shutdown_tasks_.clear();
373 373
374 weak_factory_.InvalidateWeakPtrs(); 374 weak_factory_.InvalidateWeakPtrs();
375 } 375 }
376 376
377 } // namespace remoting 377 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/client/plugin/pepper_token_fetcher.cc ('k') | remoting/host/client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698