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

Unified Diff: util/mac/checked_mach_address_range.cc

Issue 666483002: Create snapshot/mac and move some files from snapshot and util to there (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad/+/master
Patch Set: Move process_reader, process_types, and mach_o_image*_reader from util/mac to snapshot/mac Created 6 years, 2 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 | « util/mac/checked_mach_address_range.h ('k') | util/mac/checked_mach_address_range_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/mac/checked_mach_address_range.cc
diff --git a/util/mac/checked_mach_address_range.cc b/util/mac/checked_mach_address_range.cc
index 0f153a4d815f00b1d30b8a363df4c101360ccfdf..5fdabe36e492e883aad52a6d575400b4a887e2d8 100644
--- a/util/mac/checked_mach_address_range.cc
+++ b/util/mac/checked_mach_address_range.cc
@@ -16,7 +16,6 @@
#include "base/logging.h"
#include "base/numerics/safe_conversions.h"
-#include "util/mac/process_reader.h"
namespace crashpad {
@@ -25,16 +24,16 @@ CheckedMachAddressRange::CheckedMachAddressRange()
}
CheckedMachAddressRange::CheckedMachAddressRange(
- const ProcessReader* process_reader,
+ bool is_64_bit,
mach_vm_address_t base,
mach_vm_size_t size) {
- SetRange(process_reader, base, size);
+ SetRange(is_64_bit, base, size);
}
-void CheckedMachAddressRange::SetRange(const ProcessReader* process_reader,
+void CheckedMachAddressRange::SetRange(bool is_64_bit,
mach_vm_address_t base,
mach_vm_size_t size) {
- is_64_bit_ = process_reader->Is64Bit();
+ is_64_bit_ = is_64_bit;
if (is_64_bit_) {
range_64_.SetRange(base, size);
range_ok_ = true;
« no previous file with comments | « util/mac/checked_mach_address_range.h ('k') | util/mac/checked_mach_address_range_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698