OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/app/crashpad_mac.h" | 5 #include "components/crash/content/app/crashpad_mac.h" |
6 | 6 |
7 #include <string.h> | 7 #include <string.h> |
8 #include <unistd.h> | 8 #include <unistd.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
11 #include <map> | 11 #include <map> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/auto_reset.h" | 14 #include "base/auto_reset.h" |
15 #include "base/debug/crash_logging.h" | 15 #include "base/debug/crash_logging.h" |
16 #include "base/debug/dump_without_crashing.h" | 16 #include "base/debug/dump_without_crashing.h" |
17 #include "base/files/file_path.h" | 17 #include "base/files/file_path.h" |
18 #include "base/logging.h" | 18 #include "base/logging.h" |
19 #include "base/mac/bundle_locations.h" | 19 #include "base/mac/bundle_locations.h" |
20 #include "base/mac/foundation_util.h" | 20 #include "base/mac/foundation_util.h" |
21 #include "base/strings/string_number_conversions.h" | 21 #include "base/strings/string_number_conversions.h" |
22 #include "base/strings/string_piece.h" | 22 #include "base/strings/string_piece.h" |
23 #include "base/strings/stringprintf.h" | 23 #include "base/strings/stringprintf.h" |
24 #include "base/strings/sys_string_conversions.h" | 24 #include "base/strings/sys_string_conversions.h" |
25 #include "components/crash/app/crash_reporter_client.h" | 25 #include "components/crash/content/app/crash_reporter_client.h" |
26 #include "third_party/crashpad/crashpad/client/crash_report_database.h" | 26 #include "third_party/crashpad/crashpad/client/crash_report_database.h" |
27 #include "third_party/crashpad/crashpad/client/crashpad_client.h" | 27 #include "third_party/crashpad/crashpad/client/crashpad_client.h" |
28 #include "third_party/crashpad/crashpad/client/crashpad_info.h" | 28 #include "third_party/crashpad/crashpad/client/crashpad_info.h" |
29 #include "third_party/crashpad/crashpad/client/settings.h" | 29 #include "third_party/crashpad/crashpad/client/settings.h" |
30 #include "third_party/crashpad/crashpad/client/simple_string_dictionary.h" | 30 #include "third_party/crashpad/crashpad/client/simple_string_dictionary.h" |
31 #include "third_party/crashpad/crashpad/client/simulate_crash.h" | 31 #include "third_party/crashpad/crashpad/client/simulate_crash.h" |
32 | 32 |
33 namespace crash_reporter { | 33 namespace crash_reporter { |
34 | 34 |
35 namespace { | 35 namespace { |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 | 242 |
243 struct { | 243 struct { |
244 bool operator()(const UploadedReport& a, const UploadedReport& b) { | 244 bool operator()(const UploadedReport& a, const UploadedReport& b) { |
245 return a.creation_time >= b.creation_time; | 245 return a.creation_time >= b.creation_time; |
246 } | 246 } |
247 } sort_by_time; | 247 } sort_by_time; |
248 std::sort(uploaded_reports->begin(), uploaded_reports->end(), sort_by_time); | 248 std::sort(uploaded_reports->begin(), uploaded_reports->end(), sort_by_time); |
249 } | 249 } |
250 | 250 |
251 } // namespace crash_reporter | 251 } // namespace crash_reporter |
OLD | NEW |