31 lines
1.7 KiB
Diff
31 lines
1.7 KiB
Diff
|
From: uazo <uazo@users.noreply.github.com>
|
||
|
Date: Wed, 27 Oct 2021 10:57:09 +0000
|
||
|
Subject: Keep empty tabs between sessions
|
||
|
|
||
|
Original License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html
|
||
|
License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html
|
||
|
---
|
||
|
.../chrome/browser/tabmodel/TabPersistentStore.java | 8 --------
|
||
|
1 file changed, 8 deletions(-)
|
||
|
|
||
|
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabPersistentStore.java b/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabPersistentStore.java
|
||
|
--- a/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabPersistentStore.java
|
||
|
+++ b/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabPersistentStore.java
|
||
|
@@ -697,14 +697,6 @@ public class TabPersistentStore {
|
||
|
mTabCreatorManager.getTabCreator(isIncognito)
|
||
|
.createFrozenTab(tabState, tabToRestore.id, isIncognito, restoredIndex);
|
||
|
} else {
|
||
|
- if (!mSkipSavingNonActiveNtps && UrlUtilities.isNTPUrl(tabToRestore.url) && !setAsActive
|
||
|
- && !tabToRestore.fromMerge) {
|
||
|
- Log.i(TAG, "Skipping restore of non-selected NTP.");
|
||
|
- RecordHistogram.recordEnumeratedHistogram("Tabs.TabRestoreMethod",
|
||
|
- TabRestoreMethod.SKIPPED_NTP, TabRestoreMethod.NUM_ENTRIES);
|
||
|
- return;
|
||
|
- }
|
||
|
-
|
||
|
Log.w(TAG, "Failed to restore TabState; creating Tab with last known URL.");
|
||
|
Tab fallbackTab = mTabCreatorManager.getTabCreator(isIncognito)
|
||
|
.createNewTab(new LoadUrlParams(tabToRestore.url),
|
||
|
--
|
||
|
2.25.1
|