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

Side by Side Diff: headless/app/headless_shell.cc

Issue 2039183002: headless: Hide scrollbar from screenshots. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698