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/content/app/crashpad.h" | 5 #include "components/crash/content/app/crashpad.h" |
6 | 6 |
7 #include <CoreFoundation/CoreFoundation.h> | 7 #include <CoreFoundation/CoreFoundation.h> |
8 #include <string.h> | 8 #include <string.h> |
9 #include <unistd.h> | 9 #include <unistd.h> |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "third_party/crashpad/crashpad/client/crash_report_database.h" | 24 #include "third_party/crashpad/crashpad/client/crash_report_database.h" |
25 #include "third_party/crashpad/crashpad/client/crashpad_client.h" | 25 #include "third_party/crashpad/crashpad/client/crashpad_client.h" |
26 #include "third_party/crashpad/crashpad/client/crashpad_info.h" | 26 #include "third_party/crashpad/crashpad/client/crashpad_info.h" |
27 #include "third_party/crashpad/crashpad/client/settings.h" | 27 #include "third_party/crashpad/crashpad/client/settings.h" |
28 #include "third_party/crashpad/crashpad/client/simple_string_dictionary.h" | 28 #include "third_party/crashpad/crashpad/client/simple_string_dictionary.h" |
29 #include "third_party/crashpad/crashpad/client/simulate_crash.h" | 29 #include "third_party/crashpad/crashpad/client/simulate_crash.h" |
30 | 30 |
31 namespace crash_reporter { | 31 namespace crash_reporter { |
32 namespace internal { | 32 namespace internal { |
33 | 33 |
34 base::FilePath PlatformCrashpadInitialization(bool initial_client, | 34 base::FilePath PlatformCrashpadInitialization( |
35 bool browser_process, | 35 bool initial_client, |
36 bool embedded_handler) { | 36 bool browser_process, |
| 37 bool embedded_handler, |
| 38 const std::string& user_data_dir) { |
37 base::FilePath database_path; // Only valid in the browser process. | 39 base::FilePath database_path; // Only valid in the browser process. |
38 base::FilePath metrics_path; // Only valid in the browser process. | 40 base::FilePath metrics_path; // Only valid in the browser process. |
39 DCHECK(!embedded_handler); // This is not used on Mac. | 41 DCHECK(!embedded_handler); // This is not used on Mac. |
40 | 42 |
41 if (initial_client) { | 43 if (initial_client) { |
42 @autoreleasepool { | 44 @autoreleasepool { |
43 base::FilePath framework_bundle_path = base::mac::FrameworkBundlePath(); | 45 base::FilePath framework_bundle_path = base::mac::FrameworkBundlePath(); |
44 base::FilePath handler_path = | 46 base::FilePath handler_path = |
45 framework_bundle_path.Append("Helpers").Append("crashpad_handler"); | 47 framework_bundle_path.Append("Helpers").Append("crashpad_handler"); |
46 | 48 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 crashpad::CrashpadClient::UseSystemDefaultHandler(); | 120 crashpad::CrashpadClient::UseSystemDefaultHandler(); |
119 } | 121 } |
120 } // @autoreleasepool | 122 } // @autoreleasepool |
121 } | 123 } |
122 | 124 |
123 return database_path; | 125 return database_path; |
124 } | 126 } |
125 | 127 |
126 } // namespace internal | 128 } // namespace internal |
127 } // namespace crash_reporter | 129 } // namespace crash_reporter |
OLD | NEW |