DescriptionReinitialize the cookie database if the meta table gets corrupted.
This has been shown to occur in the wild. At the moment users in this situation will simply get a failure to load or persist cookies (though cookies will work within the current session). After this change, users will see their Cookie database wiped out and reinitialized, but loading and persisting should work going forward.
A histogram tracks how often this scenario is detected - it should probably spike as this is rolled out to new channels and then taper off (hopefully approaching 0).
BUG=111376
TEST=unit_tests --gtest_filter=SQLitePersistentCookieStoreTest.TestInvalidMetaTableRecovery
Patch Set 1 : Extracted test refactoring into a separate CL. #
Total comments: 4
Patch Set 2 : Add histograms. #Patch Set 3 : A more satisfying refactoring. #Patch Set 4 : Move things around a bit for a slightly smaller diff. #
Total comments: 4
Messages
Total messages: 7 (0 generated)
|