Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Issue 1408853002: [Tabbed mode] Restore tabs even if TabState is missing (Closed)

Created:
5 years, 2 months ago by gone
Modified:
5 years, 2 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Tabbed mode] Restore tabs even if TabState is missing Currently, Clank throws away tabs during initialization if the TabState couldn't be loaded. This doesn't always make sense because we store the last URL of the tab in the TabModel metadata file. Instead, re-create a Tab with the last known URL of the Tab as long as it wasn't Incognito -- if an Incognito TabState couldn't be loaded, it's just as likely that the user lost the encryption cipher key and the Tab should be thrown away, anyway. * Add the incognito tab count to the TabModel metadata that is saved out to disk. This is used to determine whether a tab is a non-incognito tab. * Adjust TabPersistentStore to allow upgrading to version 5 of the file format. * Let TabRestoreDetails determine whether or not it contains Incognito tab data. * Change restoreTab(...) to handle cases where the TabState is missing for regular tabs. In these cases, new tabs will be created with the last known URL with new IDs. * Remove a bunch of boolean return values that aren't used. * Generalize TestTabModelDirectory so that it can support V5 TabModel data. * Add a pair of tests for testing that V5 TabPersistentStore data can be restored. BUG=485217 Committed: https://crrev.com/37753152e78e2ec6fe74278130df9db6b5d7b695 Cr-Commit-Position: refs/heads/master@{#354805}

Patch Set 1 #

Patch Set 2 : Adjusting for tests #

Patch Set 3 : Added test #

Total comments: 8

Patch Set 4 : Comments, rebasing #

Messages

Total messages: 9 (3 generated)
gone
5 years, 2 months ago (2015-10-16 22:18:36 UTC) #2
David Trainor- moved to gerrit
some nits but lgtm. https://codereview.chromium.org/1408853002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabPersistentStore.java File chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabPersistentStore.java (right): https://codereview.chromium.org/1408853002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabPersistentStore.java#newcode48 chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabPersistentStore.java:48: private static final int SAVED_STATE_VERSION ...
5 years, 2 months ago (2015-10-17 05:58:41 UTC) #3
gone
https://codereview.chromium.org/1408853002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabPersistentStore.java File chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabPersistentStore.java (right): https://codereview.chromium.org/1408853002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabPersistentStore.java#newcode48 chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabPersistentStore.java:48: private static final int SAVED_STATE_VERSION = 5; On 2015/10/17 ...
5 years, 2 months ago (2015-10-19 17:42:06 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1408853002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1408853002/60001
5 years, 2 months ago (2015-10-19 17:43:07 UTC) #7
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 2 months ago (2015-10-19 18:24:16 UTC) #8
commit-bot: I haz the power
5 years, 2 months ago (2015-10-19 18:25:27 UTC) #9
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/37753152e78e2ec6fe74278130df9db6b5d7b695
Cr-Commit-Position: refs/heads/master@{#354805}

Powered by Google App Engine
This is Rietveld 408576698