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

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: 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
« headless/public/headless_browser.h ('K') | « 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..82e96c62d976e136fee55b572a17e57670a711ea 100644
--- a/headless/public/headless_browser.cc
+++ b/headless/public/headless_browser.cc
@@ -64,6 +64,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;
« headless/public/headless_browser.h ('K') | « headless/public/headless_browser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698