Index: chrome/browser/chromeos/login/wizard_controller_browsertest.cc |
diff --git a/chrome/browser/chromeos/login/wizard_controller_browsertest.cc b/chrome/browser/chromeos/login/wizard_controller_browsertest.cc |
index 4d1c9e3b4be412eedc01a547782e470e5883087d..156c740a35dc466168aad2abd9eb31bc2d36fe2e 100644 |
--- a/chrome/browser/chromeos/login/wizard_controller_browsertest.cc |
+++ b/chrome/browser/chromeos/login/wizard_controller_browsertest.cc |
@@ -275,10 +275,8 @@ class WizardControllerTest : public WizardInProcessBrowserTest { |
run_loop.Run(); |
} |
- bool JSExecute(const std::string& expression) { |
- return content::ExecuteScript( |
- GetWebContents(), |
- "window.domAutomationController.send(!!(" + expression + "));"); |
+ bool JSExecute(const std::string& script) { |
+ return content::ExecuteScript(GetWebContents(), script); |
} |
bool JSExecuteBooleanExpression(const std::string& expression) { |