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

Unified Diff: content/browser/encrypted_media_browsertest.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
Index: content/browser/encrypted_media_browsertest.cc
diff --git a/content/browser/encrypted_media_browsertest.cc b/content/browser/encrypted_media_browsertest.cc
index 0aee2edb52bbd14da7f7cecbd6c2e396788fce02..d466d222ba0cb01bd534233d0b9c6394a623c48d 100644
--- a/content/browser/encrypted_media_browsertest.cc
+++ b/content/browser/encrypted_media_browsertest.cc
@@ -76,9 +76,8 @@ class EncryptedMediaTest : public testing::WithParamInterface<const char*>,
if (final_title == kFailed) {
std::string fail_message;
- EXPECT_TRUE(ExecuteJavaScriptAndExtractString(
- shell()->web_contents()->GetRenderViewHost(),
- std::string(),
+ EXPECT_TRUE(ExecuteScriptAndExtractString(
+ shell()->web_contents(),
"window.domAutomationController.send(failMessage);",
&fail_message));
LOG(INFO) << "Test failed: " << fail_message;
« no previous file with comments | « content/browser/dom_storage/dom_storage_browsertest.cc ('k') | content/browser/fileapi/file_system_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698