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

Unified Diff: util/file/file_writer.cc

Issue 811823003: Cross platform low level file IO wrappers (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: . Created 6 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: util/file/file_writer.cc
diff --git a/util/file/file_writer.cc b/util/file/file_writer.cc
index 2a3d7c404058e16f31e7776e76e4705f251f81bf..4f833051122ecc6fc88ff9fc48473b8626e6158f 100644
--- a/util/file/file_writer.cc
+++ b/util/file/file_writer.cc
@@ -20,7 +20,7 @@
#include "base/logging.h"
#include "base/posix/eintr_wrapper.h"
-#include "util/file/fd_io.h"
+#include "util/file/file_io.h"
namespace crashpad {
@@ -61,7 +61,7 @@ bool FileWriter::Write(const void* data, size_t size) {
DCHECK(fd_.is_valid());
// TODO(mark): Write no more than SSIZE_MAX bytes in a single call.
- ssize_t written = WriteFD(fd_.get(), data, size);
+ ssize_t written = WriteFile(fd_.get(), data, size);
if (written < 0) {
PLOG(ERROR) << "write";
return false;

Powered by Google App Engine
This is Rietveld 408576698