OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <iostream> | 5 #include <iostream> |
6 #include <memory> | 6 #include <memory> |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 return EXIT_FAILURE; | 329 return EXIT_FAILURE; |
330 } | 330 } |
331 builder.SetProxyServer(parsed_proxy_server); | 331 builder.SetProxyServer(parsed_proxy_server); |
332 } | 332 } |
333 | 333 |
334 if (command_line.HasSwitch(switches::kHostResolverRules)) { | 334 if (command_line.HasSwitch(switches::kHostResolverRules)) { |
335 builder.SetHostResolverRules( | 335 builder.SetHostResolverRules( |
336 command_line.GetSwitchValueASCII(switches::kHostResolverRules)); | 336 command_line.GetSwitchValueASCII(switches::kHostResolverRules)); |
337 } | 337 } |
338 | 338 |
| 339 if (!command_line.HasSwitch(switches::kDisableOverlayScrollbar)) { |
| 340 // Enable overlay scrollbar by default to hide it from screenshots. |
| 341 command_line.AppendSwitch(switches::kEnableOverlayScrollbar); |
| 342 } |
| 343 |
339 return HeadlessBrowserMain( | 344 return HeadlessBrowserMain( |
340 builder.Build(), | 345 builder.Build(), |
341 base::Bind(&HeadlessShell::OnStart, base::Unretained(&shell))); | 346 base::Bind(&HeadlessShell::OnStart, base::Unretained(&shell))); |
342 } | 347 } |
OLD | NEW |