Index: chrome/browser/chromeos/login/lock/screen_locker_tester.cc |
diff --git a/chrome/browser/chromeos/login/lock/screen_locker_tester.cc b/chrome/browser/chromeos/login/lock/screen_locker_tester.cc |
index 37efe024b017ab8e20ede1653da2b4b0211ed961..c3fc29b05b61cc051d7602584bf418be8f167275 100644 |
--- a/chrome/browser/chromeos/login/lock/screen_locker_tester.cc |
+++ b/chrome/browser/chromeos/login/lock/screen_locker_tester.cc |
@@ -118,7 +118,7 @@ class WebUIScreenLockerTester : public ScreenLockerTester { |
}; |
void WebUIScreenLockerTester::SetPassword(const std::string& password) { |
- webui()->GetWebContents()->GetMainFrame()->ExecuteJavaScript( |
+ webui()->GetWebContents()->GetMainFrame()->ExecuteJavaScriptForTests( |
base::ASCIIToUTF16(base::StringPrintf( |
"$('pod-row').pods[0].passwordElement.value = '%s';", |
password.c_str()))); |