File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 26
26
#include " chrome/common/child_process_logging.h"
27
27
#include " content/public/common/content_switches.h"
28
28
#include " components/breakpad/breakpad_client.h"
29
+ #include " content/nw/src/paths_mac.h"
29
30
// #include "policy/policy_constants.h"
30
31
31
32
namespace {
@@ -182,19 +183,19 @@ void InitCrashReporter() {
182
183
}
183
184
184
185
// Tell Breakpad where crash_inspector and crash_report_sender are.
185
- NSString * resource_path = [main_bundle resourcePath ];
186
+ NSString * resource_path = [[ NSString alloc ] initWithUTF8String: GetFrameworksPath (). value (). c_str () ];
186
187
NSString *inspector_location =
187
188
[resource_path stringByAppendingPathComponent: @" crash_inspector" ];
188
189
NSString *reporter_bundle_location =
189
190
[resource_path stringByAppendingPathComponent: @" crash_report_sender.app" ];
190
191
NSString *reporter_location =
191
192
[[NSBundle bundleWithPath: reporter_bundle_location] executablePath ];
193
+
192
194
193
195
VLOG (1 ) << " resource_path: " << [resource_path UTF8String ];
194
196
VLOG (1 ) << " inspector_location: " << [inspector_location UTF8String ];
195
- VLOG (1 ) << " reporter_location: " << [reporter_location UTF8String ];
196
197
197
- if (!inspector_location || !reporter_location ) {
198
+ if (!inspector_location) {
198
199
VLOG_IF (1 , is_browser && base::mac::AmIBundled ()) << " Breakpad disabled" ;
199
200
return ;
200
201
}
Original file line number Diff line number Diff line change @@ -16,4 +16,6 @@ void OverrideChildProcessPath();
16
16
// Gets the path to the content shell's pak file.
17
17
base ::FilePath GetResourcesPakFilePath ();
18
18
19
+ base ::FilePath GetFrameworksPath ();
20
+
19
21
#endif // CONTENT_SHELL_PATHS_MAC_H_
Original file line number Diff line number Diff line change 27
27
28
28
using base::FilePath;
29
29
30
- namespace {
31
-
32
30
FilePath GetFrameworksPath () {
33
31
// Start out with the path to the running executable.
34
32
FilePath path;
@@ -50,8 +48,6 @@ FilePath GetFrameworksPath() {
50
48
return path.Append (" Frameworks" );
51
49
}
52
50
53
- } // namespace
54
-
55
51
void OverrideFrameworkBundlePath () {
56
52
FilePath helper_path =
57
53
GetFrameworksPath ().Append (" node-webkit Framework.framework" );
You can’t perform that action at this time.
0 commit comments