Recover version 6 Favicons, fix meta table.
commit29a4fd5d7ea7177c8ad6d95e4b6a1f5d9a090bcc
authorshess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 16 Oct 2013 05:49:05 +0000 (16 05:49 +0000)
committershess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 16 Oct 2013 05:49:05 +0000 (16 05:49 +0000)
tree26bd64a028cf07282df38cc1a5cf52ddd53ea367
parentf454eed0f7ead2959c249da24f6b0e6e69bbe832
Recover version 6 Favicons, fix meta table.

Version 6 is exactly like version 7, except it has an extra trailing
column on favicons which was never used.  The version-7 recovery code
works for it, so long as the meta table is updated correctly.

In writing this change, I realized that the meta table wasn't being
created for recovered databases.  Instead, SQLite was resolving to the
corrupt.meta table.  This works so long as the version doesn't change
(next open will populate meta with kCurrentVersion).  This change
makes the table references absolute, and fixes the meta table setup.

BUG=240396
R=jar@chromium.org, pkotwicz@chromium.org, sky@chromium.org

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=228217

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228871 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/history/thumbnail_database.cc
chrome/browser/history/thumbnail_database_unittest.cc
sql/test/test_helpers.cc
tools/metrics/histograms/histograms.xml