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

Issue 2799543002: Avoid status strings on successful ValueStore status. (Closed)

Created:
3 years, 8 months ago by brettw
Modified:
3 years, 8 months ago
Reviewers:
cmumford
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid status strings on successful ValueStore status. ValueStore::Status mirrors a leveldb "Status" object which contains an error/success code and a string message. LevelDB is carefully written so that an "OK" status does not have a message associated with it. But then in the Chrome ValueStore code the string is unconditionally retrieved (LevelDB maps this to "OK") and then expensive search-and-replace operations are performed on it. This changes the levelDB "Status" to avoid the status string on "OK". This no-string-on-OK state is already implied by the Status header. Review-Url: https://codereview.chromium.org/2799543002 Cr-Commit-Position: refs/heads/master@{#462734} Committed: https://chromium.googlesource.com/chromium/src/+/5cba6a6eeb7463afbc2445f05914f26a66874454

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M extensions/browser/value_store/lazy_leveldb.cc View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (8 generated)
brettw
3 years, 8 months ago (2017-04-05 00:58:33 UTC) #2
cmumford
lgtm
3 years, 8 months ago (2017-04-06 23:15:32 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2799543002/1
3 years, 8 months ago (2017-04-06 23:18:36 UTC) #9
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 01:28:28 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/5cba6a6eeb7463afbc2445f05914...

Powered by Google App Engine
This is Rietveld 408576698