File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 25
25
#include " base/message_loop/message_loop.h"
26
26
#include " base/values.h"
27
27
#include " content/nw/src/api/api_messages.h"
28
+ #include " content/nw/src/breakpad_linux.h"
28
29
#include " content/nw/src/browser/native_window.h"
29
30
#include " content/nw/src/browser/net_disk_cache_remover.h"
30
31
#include " content/nw/src/nw_package.h"
@@ -120,6 +121,10 @@ void App::Call(Shell* shell,
120
121
} else if (method == " GetPackage" ) {
121
122
result->AppendString (shell->GetPackage ()->package_string ());
122
123
return ;
124
+ } else if (method == " SetCrashDumpDir" ) {
125
+ std::string path;
126
+ arguments.GetString (0 , &path);
127
+ result->AppendBoolean (SetCrashDumpPath (path.c_str ()));
123
128
}
124
129
125
130
NOTREACHED () << " Calling unknown sync method " << method << " of App" ;
Original file line number Diff line number Diff line change @@ -47,6 +47,10 @@ App.prototype.crashRenderer = function() {
47
47
nw . crashRenderer ( ) ;
48
48
}
49
49
50
+ App . prototype . setCrashDumpDir = function ( dir ) {
51
+ return nw . callStaticMethodSync ( 'App' , 'SetCrashDumpDir' , [ dir ] ) ;
52
+ }
53
+
50
54
App . prototype . clearCache = function ( ) {
51
55
nw . callStaticMethodSync ( 'App' , 'ClearCache' , [ ] ) ;
52
56
}
You can’t perform that action at this time.
0 commit comments