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

Unified Diff: content/browser/database_browsertest.cc

Issue 2052633002: Extend the ToRenderFrameHost magic to FrameTreeNode* and Shell* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix induced script bug. Created 4 years, 6 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/database_browsertest.cc
diff --git a/content/browser/database_browsertest.cc b/content/browser/database_browsertest.cc
index e38e41737446cd341cc3ca4475fd5a4a2ccc66bc..35160299b629aa6c1cf0b205e9af5e2d60c9a5e7 100644
--- a/content/browser/database_browsertest.cc
+++ b/content/browser/database_browsertest.cc
@@ -26,10 +26,7 @@ class DatabaseTest : public ContentBrowserTest {
const std::string& script,
const std::string& result) {
std::string data;
- ASSERT_TRUE(ExecuteScriptAndExtractString(
- shell->web_contents(),
- script,
- &data));
+ ASSERT_TRUE(ExecuteScriptAndExtractString(shell, script, &data));
ASSERT_EQ(data, result);
}
@@ -63,10 +60,7 @@ class DatabaseTest : public ContentBrowserTest {
bool HasTable(Shell* shell) {
std::string data;
- CHECK(ExecuteScriptAndExtractString(
- shell->web_contents(),
- "getRecords()",
- &data));
+ CHECK(ExecuteScriptAndExtractString(shell, "getRecords()", &data));
return data != "getRecords error: [object SQLError]";
}
};

Powered by Google App Engine
This is Rietveld 408576698