Reland "Pull DocumentTabModel restoration logic into StorageDelegate" and run tests...
commit27790546031b5c966e2bda20399ea9cb2ab8cb0c
authordfalcantara <dfalcantara@chromium.org>
Mon, 3 Aug 2015 21:46:58 +0000 (3 14:46 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 3 Aug 2015 21:48:05 +0000 (3 21:48 +0000)
tree53fa31ce5dffa08c6d9cb10c1d04ab23dc932eec
parentc30fdeb25a3411b6bf8f0a6cd90d81895b6d0fa4
Reland "Pull DocumentTabModel restoration logic into StorageDelegate" and run tests on pre-L devices

This reverts commit 5f207fa68d2caafcfc86eda9d6ca869bfde85203.
The code changed how we were adding missing tabs slightly, but it is still
functionally alright.  Updated the tests to correct expectations.

Followed up by making the DocumentTabModel tests run on pre-L devices
because dealing with downstream breakages after-the-fact is untenable.

BUG=443772

Review URL: https://codereview.chromium.org/1271813003

Cr-Commit-Position: refs/heads/master@{#341624}
12 files changed:
chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java
chrome/android/java/src/org/chromium/chrome/browser/document/DocumentMigrationHelper.java
chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/ActivityDelegate.java
chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/ActivityDelegateImpl.java [new file with mode: 0644]
chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/AsyncDocumentLauncher.java
chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModelImpl.java
chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/StorageDelegate.java
chrome/android/javatests/src/org/chromium/chrome/browser/ntp/DocumentModeRecentlyClosedTest.java
chrome/android/javatests/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModelImplTest.java
chrome/android/javatests/src/org/chromium/chrome/browser/tabmodel/document/OffTheRecordDocumentTabModelTest.java
chrome/test/android/javatests/src/org/chromium/chrome/test/util/browser/tabmodel/document/MockActivityDelegate.java
chrome/test/android/javatests/src/org/chromium/chrome/test/util/browser/tabmodel/document/MockStorageDelegate.java