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

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

Issue 2411903003: Fix tab redirect to apps in Herb mode. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/util/IntentUtils.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabExternalNavigationTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabExternalNavigationTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabExternalNavigationTest.java
index 5a527b53b8f3ef03aa4230354ffa833f31170cbd..d522b5fbbf3f7444188318ae3c71e3562e32d15f 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabExternalNavigationTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabExternalNavigationTest.java
@@ -69,9 +69,13 @@ public class CustomTabExternalNavigationTest extends CustomTabActivityTestBase {
getInstrumentation().getTargetContext(), mTestServer.getURL(TEST_PATH)));
Tab tab = getActivity().getActivityTab();
TabDelegateFactory delegateFactory = tab.getDelegateFactory();
- assert delegateFactory instanceof CustomTabDelegateFactory;
- mUrlHandler = ((CustomTabDelegateFactory) delegateFactory).getExternalNavigationHandler();
- mNavigationDelegate = ((CustomTabDelegateFactory) delegateFactory)
+ assertTrue(delegateFactory instanceof CustomTabDelegateFactory);
+ CustomTabDelegateFactory customTabDelegateFactory =
+ ((CustomTabDelegateFactory) delegateFactory);
+ mUrlHandler = customTabDelegateFactory.getExternalNavigationHandler();
+ assertTrue(customTabDelegateFactory.getExternalNavigationDelegate()
+ instanceof CustomTabNavigationDelegate);
+ mNavigationDelegate = (CustomTabNavigationDelegate) customTabDelegateFactory
.getExternalNavigationDelegate();
}
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/util/IntentUtils.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698