Index: content/public/android/javatests/src/org/chromium/content/browser/PostMessageTest.java |
diff --git a/content/public/android/javatests/src/org/chromium/content/browser/PostMessageTest.java b/content/public/android/javatests/src/org/chromium/content/browser/PostMessageTest.java |
index 65c56791b3e1ee51d60ad390e6195bfa912573de..92dd860e3b879429e76dca198d5e10675c11caea 100644 |
--- a/content/public/android/javatests/src/org/chromium/content/browser/PostMessageTest.java |
+++ b/content/public/android/javatests/src/org/chromium/content/browser/PostMessageTest.java |
@@ -72,7 +72,8 @@ public class PostMessageTest extends ContentViewTestBase { |
@Feature({"AndroidWebView", "Android-PostMessage"}) |
public void testPostMessageToMainFrame() throws Throwable { |
ContentViewCore contentViewCore = getContentViewCore(); |
- loadDataSync(contentViewCore, URL1, "text/html", false); |
+ loadDataSync(contentViewCore.getWebContents().getNavigationController(), URL1, "text/html", |
+ false); |
contentViewCore.postMessageToFrame(null, MESSAGE, SOURCE_ORIGIN, "*"); |
mMessageObject.waitForMessage(); |
assertEquals(MESSAGE, mMessageObject.getData()); |