| OLD | NEW |
| 1 // Copyright (c) 2012 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 "components/crash/tools/crash_service.h" | 5 #include "components/crash/tools/crash_service.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 | 8 |
| 9 #include <sddl.h> | 9 #include <sddl.h> |
| 10 #include <fstream> | 10 #include <fstream> |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 using google_breakpad::CrashReportSender; | 171 using google_breakpad::CrashReportSender; |
| 172 using google_breakpad::CrashGenerationServer; | 172 using google_breakpad::CrashGenerationServer; |
| 173 | 173 |
| 174 std::wstring pipe_name = kTestPipeName; | 174 std::wstring pipe_name = kTestPipeName; |
| 175 int max_reports = -1; | 175 int max_reports = -1; |
| 176 | 176 |
| 177 // The checkpoint file allows CrashReportSender to enforce the the maximum | 177 // The checkpoint file allows CrashReportSender to enforce the the maximum |
| 178 // reports per day quota. Does not seem to serve any other purpose. | 178 // reports per day quota. Does not seem to serve any other purpose. |
| 179 base::FilePath checkpoint_path = operating_dir.Append(kCheckPointFile); | 179 base::FilePath checkpoint_path = operating_dir.Append(kCheckPointFile); |
| 180 | 180 |
| 181 CommandLine& cmd_line = *CommandLine::ForCurrentProcess(); | 181 base::CommandLine& cmd_line = *base::CommandLine::ForCurrentProcess(); |
| 182 | 182 |
| 183 base::FilePath dumps_path_to_use = dumps_path; | 183 base::FilePath dumps_path_to_use = dumps_path; |
| 184 | 184 |
| 185 if (cmd_line.HasSwitch(kDumpsDir)) { | 185 if (cmd_line.HasSwitch(kDumpsDir)) { |
| 186 dumps_path_to_use = | 186 dumps_path_to_use = |
| 187 base::FilePath(cmd_line.GetSwitchValueNative(kDumpsDir)); | 187 base::FilePath(cmd_line.GetSwitchValueNative(kDumpsDir)); |
| 188 } | 188 } |
| 189 | 189 |
| 190 // We can override the send reports quota with a command line switch. | 190 // We can override the send reports quota with a command line switch. |
| 191 if (cmd_line.HasSwitch(kMaxReports)) | 191 if (cmd_line.HasSwitch(kMaxReports)) |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 if (::GetSecurityDescriptorSacl(sec_desc, &sacl_present, &sacl, | 478 if (::GetSecurityDescriptorSacl(sec_desc, &sacl_present, &sacl, |
| 479 &sacl_defaulted)) { | 479 &sacl_defaulted)) { |
| 480 return sec_desc; | 480 return sec_desc; |
| 481 } | 481 } |
| 482 } | 482 } |
| 483 | 483 |
| 484 return NULL; | 484 return NULL; |
| 485 } | 485 } |
| 486 | 486 |
| 487 } // namespace breakpad | 487 } // namespace breakpad |
| OLD | NEW |