OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/tools/crash_service/crash_service.h" | 5 #include "chrome/tools/crash_service/crash_service.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include <fstream> | 9 #include <fstream> |
10 #include <map> | 10 #include <map> |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 security_attributes.bInheritHandle = FALSE; | 239 security_attributes.bInheritHandle = FALSE; |
240 | 240 |
241 security_attributes_actual = &security_attributes; | 241 security_attributes_actual = &security_attributes; |
242 } | 242 } |
243 | 243 |
244 // Create the OOP crash generator object. | 244 // Create the OOP crash generator object. |
245 dumper_ = new CrashGenerationServer(pipe_name, security_attributes_actual, | 245 dumper_ = new CrashGenerationServer(pipe_name, security_attributes_actual, |
246 &CrashService::OnClientConnected, this, | 246 &CrashService::OnClientConnected, this, |
247 &CrashService::OnClientDumpRequest, this, | 247 &CrashService::OnClientDumpRequest, this, |
248 &CrashService::OnClientExited, this, | 248 &CrashService::OnClientExited, this, |
| 249 NULL, NULL, |
249 true, &dumps_path.value()); | 250 true, &dumps_path.value()); |
250 | 251 |
251 if (!dumper_) { | 252 if (!dumper_) { |
252 LOG(ERROR) << "could not create dumper"; | 253 LOG(ERROR) << "could not create dumper"; |
253 if (security_attributes.lpSecurityDescriptor) | 254 if (security_attributes.lpSecurityDescriptor) |
254 LocalFree(security_attributes.lpSecurityDescriptor); | 255 LocalFree(security_attributes.lpSecurityDescriptor); |
255 return false; | 256 return false; |
256 } | 257 } |
257 | 258 |
258 if (!CreateTopWindow(::GetModuleHandleW(NULL), | 259 if (!CreateTopWindow(::GetModuleHandleW(NULL), |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 SDDL_REVISION, | 485 SDDL_REVISION, |
485 &sec_desc, NULL)) { | 486 &sec_desc, NULL)) { |
486 if (::GetSecurityDescriptorSacl(sec_desc, &sacl_present, &sacl, | 487 if (::GetSecurityDescriptorSacl(sec_desc, &sacl_present, &sacl, |
487 &sacl_defaulted)) { | 488 &sacl_defaulted)) { |
488 return sec_desc; | 489 return sec_desc; |
489 } | 490 } |
490 } | 491 } |
491 | 492 |
492 return NULL; | 493 return NULL; |
493 } | 494 } |
OLD | NEW |