|
Add a Restore() method to ValueStore and make StorageAPI use it
Take the first steps in preventing the Storage from getting and staying
corrupted. This lets us Restore() a ValueStore when it's corrputed, and tries to
do so in the StorageAPI calls.
This also refactors so that there's a Local and Sync SettingsBackend - this has
the added advantage of meaning we don't decorate the Local stores with Sync
behavior.
BUG= 261623
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252617
Total comments: 61
Total comments: 5
Total comments: 25
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+891 lines, -530 lines) |
Patch |
|
M |
chrome/browser/extensions/api/storage/leveldb_settings_storage_factory.h
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/storage/leveldb_settings_storage_factory.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+19 lines, -1 line |
0 comments
|
Download
|
|
A |
chrome/browser/extensions/api/storage/local_storage_backend.h
|
View
|
|
1 chunk |
+47 lines, -0 lines |
0 comments
|
Download
|
|
A |
chrome/browser/extensions/api/storage/local_storage_backend.cc
|
View
|
1
|
1 chunk |
+37 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/storage/policy_value_store.h
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/storage/policy_value_store.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+17 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/storage/settings_backend.h
|
View
|
1
|
1 chunk |
+32 lines, -78 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/storage/settings_backend.cc
|
View
|
1
|
2 chunks |
+13 lines, -257 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/storage/settings_frontend.cc
|
View
|
|
2 chunks |
+2 lines, -10 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/storage/settings_quota_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/storage/settings_storage_factory.h
|
View
|
1
2
3
4
5
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/storage/settings_storage_quota_enforcer.h
|
View
|
1
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/storage/settings_storage_quota_enforcer.cc
|
View
|
1
|
3 chunks |
+49 lines, -14 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/storage/settings_sync_unittest.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/storage/settings_test_util.h
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/storage/settings_test_util.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/storage/storage_api.h
|
View
|
1
|
1 chunk |
+27 lines, -8 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/storage/storage_api.cc
|
View
|
1
|
6 chunks |
+47 lines, -24 lines |
0 comments
|
Download
|
|
A |
chrome/browser/extensions/api/storage/storage_api_unittest.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+115 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/storage/sync_or_local_value_store_cache.h
|
View
|
1
|
3 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/storage/sync_or_local_value_store_cache.cc
|
View
|
1
|
5 chunks |
+51 lines, -30 lines |
0 comments
|
Download
|
|
A + |
chrome/browser/extensions/api/storage/sync_storage_backend.h
|
View
|
|
5 chunks |
+19 lines, -28 lines |
0 comments
|
Download
|
|
A + |
chrome/browser/extensions/api/storage/sync_storage_backend.cc
|
View
|
1
|
14 chunks |
+77 lines, -75 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/storage/syncable_settings_storage.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/storage/syncable_settings_storage.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/storage/weak_unlimited_settings_storage.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/storage/weak_unlimited_settings_storage.cc
|
View
|
1
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/test_extension_system.h
|
View
|
1
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/test_extension_system.cc
|
View
|
1
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/value_store/leveldb_value_store.h
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/value_store/leveldb_value_store.cc
|
View
|
1
2
3
|
1 chunk |
+49 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/value_store/leveldb_value_store_unittest.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+163 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/value_store/testing_value_store.h
|
View
|
1
2
3
4
5
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/value_store/testing_value_store.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/value_store/value_store.h
|
View
|
1
2
3
4
5
|
2 chunks |
+25 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_browser_extensions.gypi
|
View
|
1
2
3
4
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_tests_unit.gypi
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 35 (0 generated)
|