| Index: chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java
|
| index 5fae4d1699f96297703489f2f5d3419dcb235782..9fdfbb1008b106015752fa5468274047a2ad98bd 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java
|
| @@ -1034,11 +1034,14 @@ public class ChromeTabbedActivity extends ChromeActivity implements OverviewMode
|
| }
|
|
|
| if (getBottomSheet() != null) {
|
| - if (getBottomSheet().isShowingNewTab()) {
|
| + // If the bottom sheet new tab UI is showing and the tab open type is not
|
| + // already OPEN_NEW_TAB or OPEN_NEW_INCOGNITO_TAB, set the open type so that a real
|
| + // new tab will be created and added to the appropriate model.
|
| + if (getBottomSheet().isShowingNewTab() && tabOpenType != TabOpenType.OPEN_NEW_TAB
|
| + && tabOpenType != TabOpenType.OPEN_NEW_INCOGNITO_TAB) {
|
| tabOpenType = mTabModelSelectorImpl.isIncognitoSelected()
|
| ? TabOpenType.OPEN_NEW_INCOGNITO_TAB
|
| : TabOpenType.OPEN_NEW_TAB;
|
| - getBottomSheet().onProcessUrlViewIntent();
|
| }
|
|
|
| // Either a new tab is opening, a tab is being clobbered, or a tab is being brought
|
|
|