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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/banners/AppBannerManager.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: chrome/android/java/src/org/chromium/chrome/browser/banners/AppBannerManager.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/banners/AppBannerManager.java b/chrome/android/java/src/org/chromium/chrome/browser/banners/AppBannerManager.java
index c08565526231580f4be23ebd5e0fe49c14028ffe..9f371b8371355a456ca878110a26e4b9b4c6a813 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/banners/AppBannerManager.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/banners/AppBannerManager.java
@@ -226,7 +226,7 @@ public class AppBannerManager implements AppBannerView.Observer, AppDetailsDeleg
*/
private boolean isBannerForCurrentPage(String bannerUrl) {
return mContentViewCore != null &&
- TextUtils.equals(mContentViewCore.getUrl(), bannerUrl);
+ TextUtils.equals(mContentViewCore.getWebContents().getUrl(), bannerUrl);
}
private static native boolean nativeIsEnabled();

Powered by Google App Engine
This is Rietveld 408576698