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

Unified Diff: extensions/browser/api/cast_channel/cast_framer.cc

Issue 563003002: Get rid of log spam. They crept back into my client after my misadventures with merging. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/cast_channel/cast_framer.cc
diff --git a/extensions/browser/api/cast_channel/cast_framer.cc b/extensions/browser/api/cast_channel/cast_framer.cc
index 3884701b9d3121902a488dc8c593472e20d86231..4afc83b2a1f42c497f6cf18f81edf2eb046c49ea 100644
--- a/extensions/browser/api/cast_channel/cast_framer.cc
+++ b/extensions/browser/api/cast_channel/cast_framer.cc
@@ -113,7 +113,6 @@ size_t MessageFramer::BytesRequested() {
scoped_ptr<CastMessage> MessageFramer::Ingest(size_t num_bytes,
size_t* message_length,
ChannelError* error) {
- LOG(ERROR) << "Ingest1";
DCHECK(error);
DCHECK(message_length);
if (error_) {
@@ -127,10 +126,8 @@ scoped_ptr<CastMessage> MessageFramer::Ingest(size_t num_bytes,
message_bytes_received_ += num_bytes;
*error = CHANNEL_ERROR_NONE;
*message_length = 0;
- LOG(ERROR) << "Ingest2";
switch (current_element_) {
case HEADER:
- LOG(ERROR) << "IngestHeader";
if (BytesRequested() == 0) {
MessageHeader header;
MessageHeader::Deserialize(input_buffer_.get()->StartOfBuffer(),
@@ -146,14 +143,11 @@ scoped_ptr<CastMessage> MessageFramer::Ingest(size_t num_bytes,
}
break;
case BODY:
- LOG(ERROR) << "IngestBody";
if (BytesRequested() == 0) {
- LOG(ERROR) << "IngestBodyBytesRequestedIsZero";
scoped_ptr<CastMessage> parsed_message(new CastMessage);
if (!parsed_message->ParseFromArray(
input_buffer_->StartOfBuffer() + MessageHeader::header_size(),
body_size_)) {
- LOG(ERROR) << "Couldn't parse packet body";
VLOG(1) << "Error parsing packet body.";
*error = CHANNEL_ERROR_INVALID_MESSAGE;
error_ = true;
@@ -161,7 +155,6 @@ scoped_ptr<CastMessage> MessageFramer::Ingest(size_t num_bytes,
}
*message_length = body_size_;
Reset();
- LOG(ERROR) << "Returning message";
return parsed_message.Pass();
}
break;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698