| 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;
|
|
|