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

Unified Diff: third_party/crashpad/crashpad/snapshot/mac/process_reader.cc

Issue 2773813002: Update Crashpad to 8e37886d418dd042c3c7bfadac99214739ee4d98 (Closed)
Patch Set: Update Crashpad to 8e37886d418dd042c3c7bfadac99214739ee4d98 Created 3 years, 9 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/snapshot/mac/process_reader.cc
diff --git a/third_party/crashpad/crashpad/snapshot/mac/process_reader.cc b/third_party/crashpad/crashpad/snapshot/mac/process_reader.cc
index 46b83c13873c33a750200258958c9e4188bce851..46083ab3fa9ffe1e13561fe473d3b8ea2ee23213 100644
--- a/third_party/crashpad/crashpad/snapshot/mac/process_reader.cc
+++ b/third_party/crashpad/crashpad/snapshot/mac/process_reader.cc
@@ -116,7 +116,9 @@ bool ProcessReader::Initialize(task_t task) {
return false;
}
- is_64_bit_ = process_info_.Is64Bit();
+ if (!process_info_.Is64Bit(&is_64_bit_)) {
+ return false;
+ }
task_memory_.reset(new TaskMemory(task));
task_ = task;
@@ -125,6 +127,11 @@ bool ProcessReader::Initialize(task_t task) {
return true;
}
+void ProcessReader::StartTime(timeval* start_time) const {
+ bool rv = process_info_.StartTime(start_time);
+ DCHECK(rv);
+}
+
bool ProcessReader::CPUTimes(timeval* user_time, timeval* system_time) const {
INITIALIZATION_STATE_DCHECK_VALID(initialized_);

Powered by Google App Engine
This is Rietveld 408576698