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

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

Issue 2561963002: base: Remove the string logging from CHECK(). (Closed)
Patch Set: checkstring: rebase Created 4 years 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
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/desktop_session_agent.h" 5 #include "remoting/host/desktop_session_agent.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 IPC_MESSAGE_UNHANDLED(handled = false) 191 IPC_MESSAGE_UNHANDLED(handled = false)
192 IPC_END_MESSAGE_MAP() 192 IPC_END_MESSAGE_MAP()
193 } else { 193 } else {
194 IPC_BEGIN_MESSAGE_MAP(DesktopSessionAgent, message) 194 IPC_BEGIN_MESSAGE_MAP(DesktopSessionAgent, message)
195 IPC_MESSAGE_HANDLER(ChromotingNetworkDesktopMsg_StartSessionAgent, 195 IPC_MESSAGE_HANDLER(ChromotingNetworkDesktopMsg_StartSessionAgent,
196 OnStartSessionAgent) 196 OnStartSessionAgent)
197 IPC_MESSAGE_UNHANDLED(handled = false) 197 IPC_MESSAGE_UNHANDLED(handled = false)
198 IPC_END_MESSAGE_MAP() 198 IPC_END_MESSAGE_MAP()
199 } 199 }
200 200
201 CHECK(handled) << "Received unexpected IPC type: " << message.type(); 201 // Received unexpected IPC type.
202 CHECK(handled);
202 return handled; 203 return handled;
203 } 204 }
204 205
205 void DesktopSessionAgent::OnChannelConnected(int32_t peer_pid) { 206 void DesktopSessionAgent::OnChannelConnected(int32_t peer_pid) {
206 DCHECK(caller_task_runner_->BelongsToCurrentThread()); 207 DCHECK(caller_task_runner_->BelongsToCurrentThread());
207 208
208 VLOG(1) << "IPC: desktop <- network (" << peer_pid << ")"; 209 VLOG(1) << "IPC: desktop <- network (" << peer_pid << ")";
209 } 210 }
210 211
211 void DesktopSessionAgent::OnChannelError() { 212 void DesktopSessionAgent::OnChannelError() {
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 } 554 }
554 } 555 }
555 556
556 void DesktopSessionAgent::StopAudioCapturer() { 557 void DesktopSessionAgent::StopAudioCapturer() {
557 DCHECK(audio_capture_task_runner_->BelongsToCurrentThread()); 558 DCHECK(audio_capture_task_runner_->BelongsToCurrentThread());
558 559
559 audio_capturer_.reset(); 560 audio_capturer_.reset();
560 } 561 }
561 562
562 } // namespace remoting 563 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698