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

Unified Diff: third_party/crashpad/crashpad/util/file/file_io_win.cc

Issue 2349083002: Update Crashpad to 23d31c4fea61962e156f992889c6b041ad757d12 (Closed)
Patch Set: Created 4 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
Index: third_party/crashpad/crashpad/util/file/file_io_win.cc
diff --git a/third_party/crashpad/crashpad/util/file/file_io_win.cc b/third_party/crashpad/crashpad/util/file/file_io_win.cc
index def2a5a2bf8d5592e3cda1ad5b5cce12c4d09d90..5144869ef42e45d04dfd70cfa3cdbeed38f64790 100644
--- a/third_party/crashpad/crashpad/util/file/file_io_win.cc
+++ b/third_party/crashpad/crashpad/util/file/file_io_win.cc
@@ -236,4 +236,13 @@ bool LoggingCloseFile(FileHandle file) {
return !!rv;
}
+FileOffset LoggingFileSizeByHandle(FileHandle file) {
+ LARGE_INTEGER file_size;
+ if (!GetFileSizeEx(file, &file_size)) {
+ PLOG(ERROR) << "GetFileSizeEx";
+ return -1;
+ }
+ return file_size.QuadPart;
+}
+
} // namespace crashpad
« no previous file with comments | « third_party/crashpad/crashpad/util/file/file_io_test.cc ('k') | third_party/crashpad/crashpad/util/misc/metrics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698