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

Unified Diff: content/public/android/javatests/src/org/chromium/content/browser/ContentDetectionTestBase.java

Issue 481803004: Removing ContentViewCore dependencies from few functions which acts as direct wrapper to WebContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed review comments and rebased the patch. Created 6 years, 3 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/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());
}
/**

Powered by Google App Engine
This is Rietveld 408576698