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

Unified Diff: client/simulate_crash_mac.cc

Issue 1381023007: mac: Don’t leak send rights from ExceptionPorts::GetExceptionPorts() (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 5 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 | « no previous file | tools/mac/exception_port_tool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/simulate_crash_mac.cc
diff --git a/client/simulate_crash_mac.cc b/client/simulate_crash_mac.cc
index 1884262f185d4975c646375daaadbdd522bec004..cda6b76d201e5c39ec8ee902231bacc87786c92a 100644
--- a/client/simulate_crash_mac.cc
+++ b/client/simulate_crash_mac.cc
@@ -16,8 +16,6 @@
#include <string.h>
-#include <vector>
-
#include "base/basictypes.h"
#include "base/logging.h"
#include "base/mac/mach_logging.h"
@@ -216,7 +214,7 @@ void SimulateCrash(const NativeCPUContext& cpu_context) {
for (size_t target_type_index = 0;
!success && target_type_index < arraysize(kTargetTypes);
++target_type_index) {
- std::vector<ExceptionPorts::ExceptionHandler> handlers;
+ ExceptionPorts::ExceptionHandlerVector handlers;
ExceptionPorts exception_ports(kTargetTypes[target_type_index],
MACH_PORT_NULL);
if (exception_ports.GetExceptionPorts(EXC_MASK_CRASH, &handlers)) {
« no previous file with comments | « no previous file | tools/mac/exception_port_tool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698