Chromium Code Reviews| Index: chrome/test/chromedriver/chrome/web_view_impl.cc |
| diff --git a/chrome/test/chromedriver/chrome/web_view_impl.cc b/chrome/test/chromedriver/chrome/web_view_impl.cc |
| index 167151bce9c5095df9a9107226799f6c16960b71..205f43e8fdb7648ca197e978417ffcc86ea67054 100644 |
| --- a/chrome/test/chromedriver/chrome/web_view_impl.cc |
| +++ b/chrome/test/chromedriver/chrome/web_view_impl.cc |
| @@ -199,6 +199,23 @@ Status WebViewImpl::Load(const std::string& url, const Timeout* timeout) { |
| return client_->SendCommandWithTimeout("Page.navigate", params, timeout); |
| } |
| +Status WebViewImpl::SendCommandAndGetResult( |
|
johnchen
2017/04/28 21:59:32
Nit: let's keep the order of methods consistent be
em
2017/04/29 03:07:03
Done.
|
| + const std::string& cmd, |
| + const base::DictionaryValue& params, |
| + std::unique_ptr<base::Value>* value) { |
| + std::unique_ptr<base::DictionaryValue> result; |
| + Status status = client_->SendCommandAndGetResult(cmd, params, &result); |
| + if (status.IsError()) |
| + return status; |
| + *value = std::move(result); |
| + return Status(kOk); |
| +} |
| + |
| +Status WebViewImpl::SendCommand(const std::string& cmd, |
| + const base::DictionaryValue& params) { |
| + return client_->SendCommand(cmd, params); |
| +} |
| + |
| Status WebViewImpl::Reload(const Timeout* timeout) { |
| base::DictionaryValue params; |
| params.SetBoolean("ignoreCache", false); |