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

Unified Diff: chrome/test/chromedriver/chrome/automation_extension.cc

Issue 23542015: [chromedriver] Fallback to devtools for screenshotting of forbidden urls. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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: chrome/test/chromedriver/chrome/automation_extension.cc
diff --git a/chrome/test/chromedriver/chrome/automation_extension.cc b/chrome/test/chromedriver/chrome/automation_extension.cc
index 27999c8b85fb2c7a3f4bb1be407d6004f2ca6537..1a120a182233919eb7c83f9d288133c8961ce94e 100644
--- a/chrome/test/chromedriver/chrome/automation_extension.cc
+++ b/chrome/test/chromedriver/chrome/automation_extension.cc
@@ -24,7 +24,7 @@ Status AutomationExtension::CaptureScreenshot(std::string* screenshot) {
base::TimeDelta::FromSeconds(10),
&result);
if (status.IsError())
- return Status(kUnknownError, "cannot take screenshot", status);
+ return Status(status.code(), "cannot take screenshot", status);
if (!result->GetAsString(screenshot))
return Status(kUnknownError, "screenshot is not a string");
return Status(kOk);

Powered by Google App Engine
This is Rietveld 408576698