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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/document/DocumentModeTestBase.java

Issue 1777673002: AGSA-initiated weblite intents should be rewritten if Chrome can use weblite (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: Created 4 years, 9 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/javatests/src/org/chromium/chrome/browser/document/DocumentModeTestBase.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/document/DocumentModeTestBase.java b/chrome/android/javatests/src/org/chromium/chrome/browser/document/DocumentModeTestBase.java
index 4187a706a203f1fe2c693afd72813de9f4218ecc..db64de47138b8cddfe747d44721246b986e5606a 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/document/DocumentModeTestBase.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/document/DocumentModeTestBase.java
@@ -83,7 +83,13 @@ public class DocumentModeTestBase extends MultiActivityTestBase {
protected int launchViaViewIntent(final boolean incognito, final String url,
final String expectedTitle) throws Exception {
// Fire the Intent and wait until Chrome is in the foreground.
- Runnable runnable = new Runnable() {
+ return launchUrlViaRunnable(
+ incognito, getViewIntentRunnable(incognito, url), expectedTitle, false);
+ }
+
+ /** Creates a runnable that starts a DocumentActivity by using firing a VIEW Intent. */
+ protected Runnable getViewIntentRunnable(final boolean incognito, final String url) {
+ return new Runnable() {
@Override
public void run() {
Runnable runnable = new Runnable() {
@@ -105,7 +111,6 @@ public class DocumentModeTestBase extends MultiActivityTestBase {
runnable);
}
};
- return launchUrlViaRunnable(incognito, runnable, expectedTitle, false);
}
/** Starts a DocumentActivity using {@ref ChromeLauncherActivity.launchDocumentInstance().} */

Powered by Google App Engine
This is Rietveld 408576698