Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Unified Diff: chrome/test/base/ui_test_utils.cc

Issue 11753009: Simplify ExecuteJavaScript* functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update prerender_browsertest.cc. Created 7 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/base/tracing_browsertest.cc ('k') | chrome/test/gpu/gpu_pixel_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « chrome/test/base/tracing_browsertest.cc ('k') | chrome/test/gpu/gpu_pixel_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698