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 806a82c7145d6f26c7679ced3c221bfb44e3384c..a6affc7b7a857588bff5c6811e1ae1c51b12505e 100644 |
--- a/chrome/test/chromedriver/chrome/web_view_impl.cc |
+++ b/chrome/test/chromedriver/chrome/web_view_impl.cc |
@@ -177,14 +177,9 @@ Status WebViewImpl::TraverseHistory(int delta) { |
// Older versions of WebView on Android (on KitKat and earlier) do not have |
// the Page.getNavigationHistory DevTools command handler, so fall back to |
// using JavaScript to navigate back and forward. WebView reports its build |
- // number as 0, so use the error message to detect if we can't use the |
+ // number as 0, so use the error status to detect if we can't use the |
// DevTools command. |
- std::string message; |
- result->GetString("message", &message); |
- if (message == "'Page.getNavigationHistory' wasn't found") |
- return TraverseHistoryWithJavaScript(delta); |
- else |
- return status; |
+ return TraverseHistoryWithJavaScript(delta); |
} |
int current_index; |