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

Unified Diff: headless/app/headless_shell.cc

Issue 2871113002: Change from_surface default value to true (Closed)
Patch Set: revert to defaulting to true Created 3 years, 7 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
Index: headless/app/headless_shell.cc
diff --git a/headless/app/headless_shell.cc b/headless/app/headless_shell.cc
index 244e36d27a726be8bf35f4ef4ff703f07c40938c..bf2f5038ef6d9dc1ead6325e90deb171a423f2d4 100644
--- a/headless/app/headless_shell.cc
+++ b/headless/app/headless_shell.cc
@@ -372,7 +372,7 @@ void HeadlessShell::OnExpressionResult(
void HeadlessShell::CaptureScreenshot() {
devtools_client_->GetPage()->GetExperimental()->CaptureScreenshot(
- page::CaptureScreenshotParams::Builder().SetFromSurface(true).Build(),
+ page::CaptureScreenshotParams::Builder().Build(),
base::Bind(&HeadlessShell::OnScreenshotCaptured,
weak_factory_.GetWeakPtr()));
}
« no previous file with comments | « content/browser/devtools/protocol/page_handler.cc ('k') | headless/lib/headless_web_contents_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698