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

Unified Diff: client/simulate_crash_mac.h

Issue 1368023004: Use references instead of pointers for CPU context in SimulateCrash (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | client/simulate_crash_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/simulate_crash_mac.h
diff --git a/client/simulate_crash_mac.h b/client/simulate_crash_mac.h
index 7c11cd21e39128837ebfd503617139830a82b2dd..e14db3c9b40a10727a481e1c6fae7ee1896c3448 100644
--- a/client/simulate_crash_mac.h
+++ b/client/simulate_crash_mac.h
@@ -45,7 +45,7 @@ namespace crashpad {
//! state flavor that the exception handler accepts. If it is not
//! compatible, the correct thread state for the handler will be obtained by
//! calling `thread_get_state()`.
-void SimulateCrash(const NativeCPUContext* cpu_context);
+void SimulateCrash(const NativeCPUContext& cpu_context);
} // namespace crashpad
@@ -54,7 +54,7 @@ void SimulateCrash(const NativeCPUContext* cpu_context);
do { \
crashpad::NativeCPUContext cpu_context; \
crashpad::CaptureContext(&cpu_context); \
- crashpad::SimulateCrash(&cpu_context); \
+ crashpad::SimulateCrash(cpu_context); \
} while (false)
#endif // CRASHPAD_CLIENT_SIMULATE_CRASH_MAC_H_
« no previous file with comments | « no previous file | client/simulate_crash_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698