OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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> |
11 #include <sddl.h> | 11 #include <sddl.h> |
(...skipping 227 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 /*upload_request_callback*/ NULL, |
| 250 /* upload_context */ NULL, |
249 true, &dumps_path.value()); | 251 true, &dumps_path.value()); |
250 | 252 |
251 if (!dumper_) { | 253 if (!dumper_) { |
252 LOG(ERROR) << "could not create dumper"; | 254 LOG(ERROR) << "could not create dumper"; |
253 if (security_attributes.lpSecurityDescriptor) | 255 if (security_attributes.lpSecurityDescriptor) |
254 LocalFree(security_attributes.lpSecurityDescriptor); | 256 LocalFree(security_attributes.lpSecurityDescriptor); |
255 return false; | 257 return false; |
256 } | 258 } |
257 | 259 |
258 if (!CreateTopWindow(::GetModuleHandleW(NULL), | 260 if (!CreateTopWindow(::GetModuleHandleW(NULL), |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 SDDL_REVISION, | 486 SDDL_REVISION, |
485 &sec_desc, NULL)) { | 487 &sec_desc, NULL)) { |
486 if (::GetSecurityDescriptorSacl(sec_desc, &sacl_present, &sacl, | 488 if (::GetSecurityDescriptorSacl(sec_desc, &sacl_present, &sacl, |
487 &sacl_defaulted)) { | 489 &sacl_defaulted)) { |
488 return sec_desc; | 490 return sec_desc; |
489 } | 491 } |
490 } | 492 } |
491 | 493 |
492 return NULL; | 494 return NULL; |
493 } | 495 } |
OLD | NEW |