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

Unified Diff: headless/public/headless_browser.cc

Issue 2187473002: [headless] Add option to disable sandbox from API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Enable sandbox by default Created 4 years, 5 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 b1e5dbcc026ec701c2dab1ba3e5f6be04e990d45..78c1f56cc4551913ab40d1dc6d91c7b49b6dce54 100644
--- a/headless/public/headless_browser.cc
+++ b/headless/public/headless_browser.cc
@@ -20,7 +20,8 @@ Options::Options(int argc, const char** argv)
argv(argv),
user_agent(content::BuildUserAgentFromProduct(kProductName)),
message_pump(nullptr),
- single_process_mode(false) {}
+ single_process_mode(false),
+ disable_sandbox(false) {}
Options::Options(Options&& options) = default;
@@ -64,6 +65,11 @@ Builder& Builder::SetSingleProcessMode(bool single_process_mode) {
return *this;
}
+Builder& Builder::SetDisableSandbox(bool disable_sandbox) {
+ options_.disable_sandbox = disable_sandbox;
+ return *this;
+}
+
Builder& Builder::SetProtocolHandlers(ProtocolHandlerMap protocol_handlers) {
options_.protocol_handlers = std::move(protocol_handlers);
return *this;
« 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