Index: chrome/browser/chromeos/policy/device_local_account_browsertest.cc |
diff --git a/chrome/browser/chromeos/policy/device_local_account_browsertest.cc b/chrome/browser/chromeos/policy/device_local_account_browsertest.cc |
index c1db9b53554dfb557680e3771023b1c3f5acba5b..55fe1f8d10470cd09867b0bf80a882b3c3369e35 100644 |
--- a/chrome/browser/chromeos/policy/device_local_account_browsertest.cc |
+++ b/chrome/browser/chromeos/policy/device_local_account_browsertest.cc |
@@ -1923,25 +1923,6 @@ IN_PROC_BROWSER_TEST_F(DeviceLocalAccountTest, TermsOfServiceWithLocaleSwitch) { |
->GetCurrentInputMethod() |
.id()); |
- // Wait for 'tos-accept-button' to become enabled. |
- done = false; |
- ASSERT_TRUE(content::ExecuteScriptAndExtractBool( |
- contents_, |
- "var screenElement = document.getElementById('tos-accept-button');" |
- "function SendReplyIfAcceptEnabled() {" |
- " if ($('tos-accept-button').disabled)" |
- " return false;" |
- " domAutomationController.send(true);" |
- " observer.disconnect();" |
- " return true;" |
- "}" |
- "var observer = new MutationObserver(SendReplyIfAcceptEnabled);" |
- "if (!SendReplyIfAcceptEnabled()) {" |
- " var options = { attributes: true };" |
- " observer.observe(screenElement, options);" |
- "}", |
- &done)); |
- |
// Click the accept button. |
ASSERT_TRUE(content::ExecuteScript(contents_, |
"$('tos-accept-button').click();")); |