Index: headless/public/headless_browser.cc |
diff --git a/headless/public/headless_browser.cc b/headless/public/headless_browser.cc |
index a879e1d66d3e9fddcfd20e95a39c9a14213ceadc..474809c240472670875a672e0fcd87ed7212d43c 100644 |
--- a/headless/public/headless_browser.cc |
+++ b/headless/public/headless_browser.cc |
@@ -28,7 +28,8 @@ Options::Options(int argc, const char** argv) |
gl_implementation("osmesa"), |
user_agent(content::BuildUserAgentFromProduct(kProductName)), |
window_size(kDefaultWindowSize), |
- incognito_mode(true) {} |
+ incognito_mode(true), |
+ enable_crash_reporter(false) {} |
Options::Options(Options&& options) = default; |
@@ -108,6 +109,16 @@ Builder& Builder::SetOverrideWebPreferencesCallback( |
return *this; |
} |
+Builder& Builder::SetCrashReporterEnabled(bool enabled) { |
+ options_.enable_crash_reporter = enabled; |
+ return *this; |
+} |
+ |
+Builder& Builder::SetCrashDumpsDir(const base::FilePath& dir) { |
+ options_.crash_dumps_dir = dir; |
+ return *this; |
+} |
+ |
Options Builder::Build() { |
return std::move(options_); |
} |