File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,15 @@ impl<H: CefEventHandler> ImplApp for BrowserProcessAppImpl<H> {
3333
3434 fn on_before_command_line_processing ( & self , _process_type : Option < & cef:: CefString > , command_line : Option < & mut cef:: CommandLine > ) {
3535 if let Some ( cmd) = command_line {
36- // Limit renderer processes to 1
3736 cmd. append_switch_with_value ( Some ( & CefString :: from ( "renderer-process-limit" ) ) , Some ( & CefString :: from ( "1" ) ) ) ;
37+ cmd. append_switch_with_value ( Some ( & CefString :: from ( "disk-cache-size" ) ) , Some ( & CefString :: from ( "0" ) ) ) ;
38+ cmd. append_switch ( Some ( & CefString :: from ( "incognito" ) ) ) ;
39+ cmd. append_switch ( Some ( & CefString :: from ( "no-first-run" ) ) ) ;
40+ cmd. append_switch ( Some ( & CefString :: from ( "disable-file-system" ) ) ) ;
41+ cmd. append_switch ( Some ( & CefString :: from ( "disable-local-storage" ) ) ) ;
42+ cmd. append_switch ( Some ( & CefString :: from ( "disable-background-networking" ) ) ) ;
43+ cmd. append_switch ( Some ( & CefString :: from ( "disable-audio-input" ) ) ) ;
44+ cmd. append_switch ( Some ( & CefString :: from ( "disable-audio-output" ) ) ) ;
3845
3946 #[ cfg( not( feature = "accelerated_paint" ) ) ]
4047 {
You can’t perform that action at this time.
0 commit comments