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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/app/headless_shell.cc
diff --git a/headless/app/headless_shell.cc b/headless/app/headless_shell.cc
index f8145054054325e9a5ccaa029622485a36f86b0f..6cea6ad8cc28ef256e3fa0dfc78587a82295731f 100644
--- a/headless/app/headless_shell.cc
+++ b/headless/app/headless_shell.cc
@@ -336,6 +336,11 @@ int main(int argc, const char** argv) {
command_line.GetSwitchValueASCII(switches::kHostResolverRules));
}
+ if (!command_line.HasSwitch(switches::kDisableOverlayScrollbar)) {
+ // Enable overlay scrollbar by default to hide it from screenshots.
+ command_line.AppendSwitch(switches::kEnableOverlayScrollbar);
+ }
+
return HeadlessBrowserMain(
builder.Build(),
base::Bind(&HeadlessShell::OnStart, base::Unretained(&shell)));
« 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