Index: content/public/android/javatests/src/org/chromium/content/browser/ContentDetectionTestBase.java |
diff --git a/content/public/android/javatests/src/org/chromium/content/browser/ContentDetectionTestBase.java b/content/public/android/javatests/src/org/chromium/content/browser/ContentDetectionTestBase.java |
index 6480854704de5ff69c4810b1cce5cd087a116398..870536f6991df8c0b4910fcedfb39d782960611c 100644 |
--- a/content/public/android/javatests/src/org/chromium/content/browser/ContentDetectionTestBase.java |
+++ b/content/public/android/javatests/src/org/chromium/content/browser/ContentDetectionTestBase.java |
@@ -52,7 +52,8 @@ public class ContentDetectionTestBase extends ContentShellTestBase { |
* @return true if the test url is the current one, false otherwise. |
*/ |
protected boolean isCurrentTestUrl(String testUrl) { |
- return UrlUtils.getTestFileUrl(testUrl).equals(getContentViewCore().getUrl()); |
+ return UrlUtils.getTestFileUrl(testUrl).equals(getContentViewCore() |
+ .getWebContents().getUrl()); |
} |
/** |