| 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);
|
|
|