Index: chrome/test/remoting/remote_desktop_browsertest.h |
diff --git a/chrome/test/remoting/remote_desktop_browsertest.h b/chrome/test/remoting/remote_desktop_browsertest.h |
index e5659945c958f78196e17b04a7d74e32063e5ac0..020c918eb115eb229b8a3f66e6c5713554790892 100644 |
--- a/chrome/test/remoting/remote_desktop_browsertest.h |
+++ b/chrome/test/remoting/remote_desktop_browsertest.h |
@@ -314,6 +314,14 @@ class RemoteDesktopBrowserTest : public extensions::PlatformAppBrowserTest { |
return IsAuthenticatedInWindow(active_web_contents()); |
} |
+ // Callback used by Approve to check whether the Accept button is enabled |
+ // and ready to receive a click. |
+ bool IsEnabled(const std::string& name) { |
+ return !ExecuteScriptAndExtractBool( |
+ active_web_contents(), |
+ "document.getElementById(\"" + name + "\").disabled"); |
+ } |
+ |
// If the "Host version out-of-date" form is visible, dismiss it. |
void DismissHostVersionWarningIfVisible(); |