Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(322)

Unified Diff: headless/public/headless_browser.cc

Issue 2693943004: headless: Add support for minidump generation on Linux (Closed)
Patch Set: Review comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « headless/public/headless_browser.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_);
}
« no previous file with comments | « headless/public/headless_browser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698