Index: content/public/android/javatests/src/org/chromium/content/browser/JavaBridgeTestBase.java |
diff --git a/content/public/android/javatests/src/org/chromium/content/browser/JavaBridgeTestBase.java b/content/public/android/javatests/src/org/chromium/content/browser/JavaBridgeTestBase.java |
index bcf40c243f1c050bc547127fdf8e584ed8816735..5a4bc7fc4662005e918a3d29b50eccd6e8cc103e 100644 |
--- a/content/public/android/javatests/src/org/chromium/content/browser/JavaBridgeTestBase.java |
+++ b/content/public/android/javatests/src/org/chromium/content/browser/JavaBridgeTestBase.java |
@@ -43,8 +43,8 @@ public class JavaBridgeTestBase extends ContentViewTestBase { |
// converted to a string and used as the new document for the |
// frame. We don't want this behaviour, so wrap the script in |
// an anonymous function. |
- getContentViewCore().loadUrl(new LoadUrlParams( |
- "javascript:(function() { " + script + " })()")); |
+ getContentViewCore().getWebContents().getNavigationController().loadUrl( |
+ new LoadUrlParams("javascript:(function() { " + script + " })()")); |
} |
}); |
} |