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

Side by Side Diff: jingle/notifier/base/xmpp_connection.cc

Issue 3448028: Implemented VLOG() et al. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Addressed evmar's comments Created 10 years, 2 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
« no previous file with comments | « chrome/browser/sync/notifier/chrome_invalidation_client.cc ('k') | no next file » | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "jingle/notifier/base/xmpp_connection.h" 5 #include "jingle/notifier/base/xmpp_connection.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/string_piece.h" 10 #include "base/string_piece.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 break; 114 break;
115 } 115 }
116 default: 116 default:
117 // Do nothing. 117 // Do nothing.
118 break; 118 break;
119 } 119 }
120 } 120 }
121 121
122 void XmppConnection::OnInputLog(const char* data, int len) { 122 void XmppConnection::OnInputLog(const char* data, int len) {
123 DCHECK(non_thread_safe_.CalledOnValidThread()); 123 DCHECK(non_thread_safe_.CalledOnValidThread());
124 LOG(INFO) << "XMPP Input: " << base::StringPiece(data, len); 124 VLOG(2) << "XMPP Input: " << base::StringPiece(data, len);
125 } 125 }
126 126
127 void XmppConnection::OnOutputLog(const char* data, int len) { 127 void XmppConnection::OnOutputLog(const char* data, int len) {
128 DCHECK(non_thread_safe_.CalledOnValidThread()); 128 DCHECK(non_thread_safe_.CalledOnValidThread());
129 LOG(INFO) << "XMPP Output: " << base::StringPiece(data, len); 129 VLOG(2) << "XMPP Output: " << base::StringPiece(data, len);
130 } 130 }
131 131
132 void XmppConnection::ClearClient() { 132 void XmppConnection::ClearClient() {
133 if (weak_xmpp_client_.get()) { 133 if (weak_xmpp_client_.get()) {
134 weak_xmpp_client_->Invalidate(); 134 weak_xmpp_client_->Invalidate();
135 DCHECK(!weak_xmpp_client_.get()); 135 DCHECK(!weak_xmpp_client_.get());
136 } 136 }
137 } 137 }
138 138
139 } // namespace notifier 139 } // namespace notifier
OLDNEW
« no previous file with comments | « chrome/browser/sync/notifier/chrome_invalidation_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698