[Offline Pages]: Add PrefetchStoreSchema for schema creation and upgrades.
Moves schema creation and migration code out of PrefetchStore and into the newly created PrefetchStoreSchema. This is a step towards having a generic storage architecture for all of Offline Pages features. This also introduces the first migration code that will upgrade the schema from version 1 to version 2. This will ensure that all users have the latest version of the items table, for which the default |file_size| column value is -1. PrefetchStoreSchemaTest has unit tests for the schema management class itself and for SQLite preconditions that ensure its logic works. Bug: 701939 Change-Id: Ica8c2905bbb4f9bf76721c83e69d2b61044fa95d Reviewed-on: https://chromium-review.googlesource.com/656402 Commit-Queue: Carlos Knippschild <carlosk@chromium.org> Reviewed-by:Justin DeWitt <dewittj@chromium.org> Reviewed-by:
Filip Gorski <fgorski@chromium.org> Cr-Commit-Position: refs/heads/master@{#504157}
Showing
This diff is collapsed.
Please register or sign in to comment