Index: chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelOrderController.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelOrderController.java b/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelOrderController.java |
index 856ba0f0c3b118e76bbb530a460f0014b9f57f6c..0393d37330031f4ef40d9c28b1051b624c5ac10c 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelOrderController.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelOrderController.java |
@@ -30,7 +30,6 @@ |
* @return Where to insert the tab. |
*/ |
public int determineInsertionIndex(TabLaunchType type, int position, Tab newTab) { |
- if (type == TabLaunchType.FROM_BROWSER_ACTIONS) return -1; |
if (linkClicked(type)) { |
position = determineInsertionIndex(type, newTab); |
} |
@@ -133,9 +132,7 @@ |
*/ |
public boolean willOpenInForeground(TabLaunchType type, boolean isNewTabIncognito) { |
// Restore is handling the active index by itself. |
- if (type == TabLaunchType.FROM_RESTORE || type == TabLaunchType.FROM_BROWSER_ACTIONS) { |
- return false; |
- } |
+ if (type == TabLaunchType.FROM_RESTORE) return false; |
return type != TabLaunchType.FROM_LONGPRESS_BACKGROUND |
|| (!mTabModelSelector.isIncognitoSelected() && isNewTabIncognito); |
} |