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

Unified Diff: split_file_writer.h

Issue 3495002: [update_engine] Fix file creation mask to be 0600 (Closed) Base URL: http://git.chromium.org/git/update_engine.git
Patch Set: Created 10 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
« main.cc ('K') | « main.cc ('k') | split_file_writer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: split_file_writer.h
diff --git a/split_file_writer.h b/split_file_writer.h
index cba816136400721a2f64efeefe7266ccffa96858..508cae06205f76f0fec131944d6c24a422da007b 100644
--- a/split_file_writer.h
+++ b/split_file_writer.h
@@ -25,13 +25,13 @@ class SplitFileWriter : public FileWriter {
first_mode_(0),
second_file_writer_(second_file_writer),
bytes_received_(0) {}
-
+
void SetFirstOpenArgs(const char* path, int flags, mode_t mode) {
first_path_ = path;
first_flags_ = flags;
first_mode_ = mode;
}
-
+
// If both succeed, returns the return value from the second Open() call.
// On error, both files will be left closed.
virtual int Open(const char* path, int flags, mode_t mode);
@@ -47,11 +47,11 @@ class SplitFileWriter : public FileWriter {
const char* first_path_;
int first_flags_;
mode_t first_mode_;
-
- // The scond file writeer.
+
+ // The second file writer.
FileWriter* const second_file_writer_;
- // Bytes written thus far
+ // Bytes written thus far.
off_t bytes_received_;
char first_length_buf_[sizeof(uint64_t)];
« main.cc ('K') | « main.cc ('k') | split_file_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698