| Index: chrome/android/java_staging/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java
|
| diff --git a/chrome/android/java_staging/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java b/chrome/android/java_staging/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java
|
| index 38102cf33f9a9ccfc16b25491f0e562fe0ca8c71..228006b07c6900c8746de6c8dd22dde3845bdabf 100644
|
| --- a/chrome/android/java_staging/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java
|
| +++ b/chrome/android/java_staging/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java
|
| @@ -46,6 +46,7 @@ import org.chromium.chrome.browser.multiwindow.MultiWindowUtils;
|
| import org.chromium.chrome.browser.notifications.NotificationUIManager;
|
| import org.chromium.chrome.browser.partnercustomizations.HomepageManager;
|
| import org.chromium.chrome.browser.partnercustomizations.PartnerBrowserCustomizations;
|
| +import org.chromium.chrome.browser.preferences.ChromePreferenceManager;
|
| import org.chromium.chrome.browser.preferences.DocumentModeManager;
|
| import org.chromium.chrome.browser.tabmodel.document.ActivityDelegate;
|
| import org.chromium.chrome.browser.tabmodel.document.DocumentTabModel;
|
| @@ -267,6 +268,8 @@ public class ChromeLauncherActivity extends Activity
|
| String url = IntentHandler.getUrlFromIntent(getIntent());
|
| if (url == null) return false;
|
|
|
| + if (!ChromePreferenceManager.getInstance(this).getCustomTabsEnabled()) return false;
|
| +
|
| boolean handled = CustomTabActivity.handleInActiveContentIfNeeded(getIntent());
|
| if (handled) return true;
|
|
|
|
|