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

Unified Diff: tools/battor_agent/battor_connection_impl.cc

Issue 2718473002: Add Windows-specific WPR archives for YouTube system health stories (Closed)
Patch Set: changes Created 3 years, 7 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: tools/battor_agent/battor_connection_impl.cc
diff --git a/tools/battor_agent/battor_connection_impl.cc b/tools/battor_agent/battor_connection_impl.cc
index e3dfa2df282e7eda11fef5d694c7320628d1800b..a6b861878eaa4ad4827b2dd8960d5664b1c04a42 100644
--- a/tools/battor_agent/battor_connection_impl.cc
+++ b/tools/battor_agent/battor_connection_impl.cc
@@ -222,13 +222,7 @@ void BattOrConnectionImpl::OnBytesRead(int bytes_read,
return;
}
- if (bytes_read == 0) {
- // If we didn't have a message before, and we weren't able to read any
- // additional bytes, then there's no valid message available.
- LogSerial("Read failed due to no bytes being read.");
- EndReadBytes(false, BATTOR_MESSAGE_TYPE_CONTROL, nullptr);
- return;
- }
+ // NOTE: Zero bytes may have been read.
if (pending_read_message_type_ == BATTOR_MESSAGE_TYPE_SAMPLES) {
// If we're reading samples, don't log every byte that we receive. This
« 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