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

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

Issue 1371553002: Remove mActivity from Tab and look at windowAndroid for tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/customtabs/CustomTab.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTab.java b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTab.java
index 4422df5dac0c942baa9116dd13ca2c799bb9ebba..82fb0ac332f49ef02da8e54e1af5e6854d4b4cea 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTab.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTab.java
@@ -199,9 +199,10 @@ public class CustomTab extends ChromeTab {
@Override
protected InterceptNavigationDelegateImpl createInterceptNavigationDelegate() {
- mNavigationDelegate = new CustomTabNavigationDelegate(mActivity);
+ assert getActivity() != null;
+ mNavigationDelegate = new CustomTabNavigationDelegate(getActivity());
mNavigationHandler = new ExternalNavigationHandler(mNavigationDelegate);
- return new InterceptNavigationDelegateImpl(mNavigationHandler, mActivity, this);
+ return new InterceptNavigationDelegateImpl(mNavigationHandler, getActivity(), this);
}
/**

Powered by Google App Engine
This is Rietveld 408576698