| Index: chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java
|
| index c314adfb61a9e6bbd69638f688e2b967ffcac936..08d4f866d277bbb59e2d3f6ef6d3ddc6885fb79a 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java
|
| @@ -46,6 +46,7 @@ import org.chromium.chrome.browser.UrlConstants;
|
| import org.chromium.chrome.browser.WarmupManager;
|
| import org.chromium.chrome.browser.customtabs.CustomTabActivity;
|
| import org.chromium.chrome.browser.customtabs.CustomTabIntentDataProvider;
|
| +import org.chromium.chrome.browser.dom_distiller.ReaderModeManager;
|
| import org.chromium.chrome.browser.externalnav.IntentWithGesturesHandler;
|
| import org.chromium.chrome.browser.firstrun.FirstRunFlowSequencer;
|
| import org.chromium.chrome.browser.metrics.LaunchMetrics;
|
| @@ -175,12 +176,13 @@ public class ChromeLauncherActivity extends Activity
|
| mIsInMultiInstanceMode = MultiWindowUtils.getInstance().shouldRunInMultiInstanceMode(this);
|
| mIntentHandler = new IntentHandler(this, getPackageName());
|
| mIsCustomTabIntent = isCustomTabIntent();
|
| - if (!mIsCustomTabIntent) {
|
| + Intent intent = getIntent();
|
| + // If the intent was created by Reader Mode, ignore herb and custom tab information.
|
| + if (!mIsCustomTabIntent && !ReaderModeManager.isReaderModeCreatedIntent(this, intent)) {
|
| mIsHerbIntent = isHerbIntent();
|
| mIsCustomTabIntent = mIsHerbIntent;
|
| }
|
|
|
| - Intent intent = getIntent();
|
| // Check if a LIVE WebappActivity has to be brought back to the foreground. We can't
|
| // check for a dead WebappActivity because we don't have that information without a global
|
| // TabManager. If that ever lands, code to bring back any Tab could be consolidated
|
|
|