Use composition in SharedProtoDatabaseClient instead of inheritance.
SharedProtoDatabaseClient inherited from UniqueProtoDatabase which was potentially risky since we can accidentally use some of UniqueProtoDB's functionality resulting in incorrect keys/entries from the database because we're not stripping/adding prefixes. We now inherit from ProtoDatabase to ensure that any functions added in the future must also be implemented in SharedProtoDatabase. Bug: 870813 Change-Id: I270afdb9dcffa0ba045756272a2f36af9cc93048 Reviewed-on: https://chromium-review.googlesource.com/c/1355423Reviewed-by:Tommy Nyquist <nyquist@chromium.org> Commit-Queue: Troy Hildebrandt <thildebr@chromium.org> Cr-Commit-Position: refs/heads/master@{#612331}
Showing
Please register or sign in to comment