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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/Tab.java

Issue 572013002: Removing ContentViewCore dependencies from direct WebContents functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased the patch and addressed review comments. Created 6 years, 2 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: chrome/android/java/src/org/chromium/chrome/browser/Tab.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/Tab.java b/chrome/android/java/src/org/chromium/chrome/browser/Tab.java
index 18bf4d0cac32ff29fc19bd953603186c0e751e19..c675a438866e7ff5a6aaa5dc200780b38fa59783 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/Tab.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/Tab.java
@@ -467,7 +467,7 @@ public class Tab implements NavigationClient {
* @return Whether or not the tab has something valid to render.
*/
public boolean isReady() {
- return mNativePage != null || (mContentViewCore != null && mContentViewCore.isReady());
+ return mNativePage != null || (getWebContents() != null && getWebContents().isReady());
}
/**

Powered by Google App Engine
This is Rietveld 408576698