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

Unified Diff: ui/file_manager/zip_archiver/cpp/request.cc

Issue 2807063002: Replace Libarchive with MiniZip. (Closed)
Patch Set: Fix a few nits. Created 3 years, 8 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 | « ui/file_manager/zip_archiver/cpp/request.h ('k') | ui/file_manager/zip_archiver/cpp/volume.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/zip_archiver/cpp/request.cc
diff --git a/ui/file_manager/zip_archiver/cpp/request.cc b/ui/file_manager/zip_archiver/cpp/request.cc
index db8528bc3bdd3f437f77777643867aae452c390c..8f75d728e9b1677ea8e04b52c17f984f82074412 100644
--- a/ui/file_manager/zip_archiver/cpp/request.cc
+++ b/ui/file_manager/zip_archiver/cpp/request.cc
@@ -115,12 +115,17 @@ pp::VarDictionary request::CreateReadFileChunkRequest(
pp::VarDictionary request::CreateWriteChunkRequest(
int compressor_id,
const pp::VarArrayBuffer& array_buffer,
+ int64_t offset,
int64_t length) {
pp::VarDictionary request;
request.Set(request::key::kOperation, WRITE_CHUNK);
request.Set(request::key::kCompressorId, compressor_id);
request.Set(request::key::kChunkBuffer, array_buffer);
+
+ std::stringstream ss_offset;
+ ss_offset << offset;
+ request.Set(request::key::kOffset, ss_offset.str());
std::stringstream ss_length;
ss_length << length;
request.Set(request::key::kLength, ss_length.str());
« no previous file with comments | « ui/file_manager/zip_archiver/cpp/request.h ('k') | ui/file_manager/zip_archiver/cpp/volume.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698