Index: chrome/test/base/ui_test_utils.cc |
diff --git a/chrome/test/base/ui_test_utils.cc b/chrome/test/base/ui_test_utils.cc |
index 3db0e503c082d05c3a72ea6be8cf50a98003d84c..745da50307135ef9c9d6bfd9d02b5712a468cf12 100644 |
--- a/chrome/test/base/ui_test_utils.cc |
+++ b/chrome/test/base/ui_test_utils.cc |
@@ -566,9 +566,9 @@ class SnapshotTaker { |
SkBitmap* bitmap) WARN_UNUSED_RESULT { |
const char* script = |
"window.domAutomationController.send(" |
- "JSON.stringify([document.width, document.height]))"; |
+ " JSON.stringify([document.width, document.height]))"; |
std::string json; |
- if (!content::ExecuteJavaScriptAndExtractString(rvh, "", script, &json)) |
+ if (!content::ExecuteScriptAndExtractString(rvh, script, &json)) |
return false; |
// Parse the JSON. |