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

Unified Diff: src/platform/update_engine/decompressing_file_writer.cc

Issue 466036: AU: Beginnings of delta support (Closed)
Patch Set: Created 11 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 side-by-side diff with in-line comments
Download patch
Index: src/platform/update_engine/decompressing_file_writer.cc
diff --git a/src/platform/update_engine/decompressing_file_writer.cc b/src/platform/update_engine/decompressing_file_writer.cc
index 15bd4fd66372802b3a03bf744f847814131597a7..96db0100b18dbab125b4cd8a66f8f14ed20e8fa1 100644
--- a/src/platform/update_engine/decompressing_file_writer.cc
+++ b/src/platform/update_engine/decompressing_file_writer.cc
@@ -37,7 +37,10 @@ int GzipDecompressingFileWriter::Write(const void* bytes, size_t count) {
// so not all data we get fed to us this time will necessarily
// be written out this time (in decompressed form).
- CHECK_EQ(0, stream_.avail_in);
+ if (stream_.avail_in) {
+ LOG(ERROR) << "Have data already. Bailing";
+ return -1;
+ }
char buf[1024];
buffer_.reserve(count);
« no previous file with comments | « src/platform/update_engine/decompressing_file_writer.h ('k') | src/platform/update_engine/download_action.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698