Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Issue 24021002: Propagate more information about ValueStore errors to callers, notably an (Closed)

Created:
7 years, 3 months ago by not at google - send to devlin
Modified:
7 years, 3 months ago
Reviewers:
Matt Perry
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Propagate more information about ValueStore errors to callers, notably an error code in addition to the error message. This turned out to be a surprisingly invasive yak shave and is accompanied by a few very small fixes to inefficient and overly complex code I noticed along the way. This is the first stage in making the chrome.storage extension/app API able to gracefully recover from leveldb corruption. BUG=261623 R=mpcomplete@chromium.org TBR=tim@chromium.org NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=222178

Patch Set 1 #

Total comments: 8

Patch Set 2 : matt comments #

Patch Set 3 : add Pass*() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+467 lines, -444 lines) Patch
M chrome/browser/extensions/api/storage/policy_value_store.cc View 3 chunks +13 lines, -11 lines 0 comments Download
M chrome/browser/extensions/api/storage/policy_value_store_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/storage/settings_backend.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/storage/settings_frontend_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/storage/settings_quota_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/storage/settings_storage_quota_enforcer.cc View 6 chunks +27 lines, -24 lines 0 comments Download
M chrome/browser/extensions/api/storage/settings_sync_unittest.cc View 13 chunks +19 lines, -19 lines 0 comments Download
M chrome/browser/extensions/api/storage/storage_api.cc View 7 chunks +19 lines, -25 lines 0 comments Download
M chrome/browser/extensions/api/storage/syncable_settings_storage.cc View 6 chunks +18 lines, -18 lines 0 comments Download
M chrome/browser/sync/test/integration/extension_settings_helper.cc View 1 1 chunk +6 lines, -7 lines 0 comments Download
M chrome/browser/value_store/leveldb_value_store.h View 1 chunk +23 lines, -19 lines 0 comments Download
M chrome/browser/value_store/leveldb_value_store.cc View 1 10 chunks +139 lines, -186 lines 0 comments Download
M chrome/browser/value_store/testing_value_store.h View 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/value_store/testing_value_store.cc View 7 chunks +20 lines, -37 lines 0 comments Download
M chrome/browser/value_store/value_store.h View 1 2 4 chunks +86 lines, -35 lines 0 comments Download
M chrome/browser/value_store/value_store.cc View 1 chunk +21 lines, -39 lines 0 comments Download
M chrome/browser/value_store/value_store_frontend.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/value_store/value_store_frontend_unittest.cc View 1 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/value_store/value_store_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
A chrome/browser/value_store/value_store_util.h View 1 chunk +29 lines, -0 lines 0 comments Download
A chrome/browser/value_store/value_store_util.cc View 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
not at google - send to devlin
Hey Matt, hopefully I didn't get too carried away here (I tried very hard not ...
7 years, 3 months ago (2013-09-06 01:55:17 UTC) #1
Matt Perry
https://codereview.chromium.org/24021002/diff/1/chrome/browser/extensions/api/storage/storage_api.cc File chrome/browser/extensions/api/storage/storage_api.cc (right): https://codereview.chromium.org/24021002/diff/1/chrome/browser/extensions/api/storage/storage_api.cc#newcode84 chrome/browser/extensions/api/storage/storage_api.cc:84: SetResult(result); You have a PassError - how about a ...
7 years, 3 months ago (2013-09-06 20:07:29 UTC) #2
not at google - send to devlin
https://codereview.chromium.org/24021002/diff/1/chrome/browser/extensions/api/storage/storage_api.cc File chrome/browser/extensions/api/storage/storage_api.cc (right): https://codereview.chromium.org/24021002/diff/1/chrome/browser/extensions/api/storage/storage_api.cc#newcode84 chrome/browser/extensions/api/storage/storage_api.cc:84: SetResult(result); On 2013/09/06 20:07:30, Matt Perry wrote: > You ...
7 years, 3 months ago (2013-09-06 21:44:28 UTC) #3
Matt Perry
lgtm https://codereview.chromium.org/24021002/diff/1/chrome/browser/extensions/api/storage/storage_api.cc File chrome/browser/extensions/api/storage/storage_api.cc (right): https://codereview.chromium.org/24021002/diff/1/chrome/browser/extensions/api/storage/storage_api.cc#newcode84 chrome/browser/extensions/api/storage/storage_api.cc:84: SetResult(result); On 2013/09/06 21:44:28, kalman wrote: > On ...
7 years, 3 months ago (2013-09-06 21:50:37 UTC) #4
not at google - send to devlin
https://codereview.chromium.org/24021002/diff/1/chrome/browser/extensions/api/storage/storage_api.cc File chrome/browser/extensions/api/storage/storage_api.cc (right): https://codereview.chromium.org/24021002/diff/1/chrome/browser/extensions/api/storage/storage_api.cc#newcode84 chrome/browser/extensions/api/storage/storage_api.cc:84: SetResult(result); On 2013/09/06 21:50:37, Matt Perry wrote: > On ...
7 years, 3 months ago (2013-09-10 00:21:32 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/24021002/40001
7 years, 3 months ago (2013-09-10 00:23:04 UTC) #6
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-09-10 00:54:11 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/24021002/40001
7 years, 3 months ago (2013-09-10 01:21:29 UTC) #8
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-09-10 01:31:30 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/24021002/40001
7 years, 3 months ago (2013-09-10 01:52:39 UTC) #10
commit-bot: I haz the power
7 years, 3 months ago (2013-09-10 01:54:34 UTC) #11
Message was sent while issue was closed.
Change committed as 222178

Powered by Google App Engine
This is Rietveld 408576698