-
Chris Mumford authored
LevelDB and ProtoDatabase had each had Init() and InitWithOptions() members. LevelDB::Init() had it's own default option values whereas ProtoDatabase::Init() used the stock leveldb_env::Options() instance. This change simplifies the API by combining Init() and InitWithOptions() into a single Init() that is passed an options instance where all options values are honored *except* |env| and only if database_name is empty (ie in-memory db). Bug: 762587 Change-Id: I70b547b4c1bbc5542c58fb31faf12d0ba2de3f0b Reviewed-on: https://chromium-review.googlesource.com/655145 Reviewed-by: Xing Liu <xingliu@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org> Reviewed-by: Marc Treib <treib@chromium.org> Reviewed-by: Nicolas Zea <zea@chromium.org> Reviewed-by: Tommy Nyquist <nyquist@chromium.org> Commit-Queue: Chris Mumford <cmumford@chromium.org> Cr-Commit-Position: refs/heads/master@{#503294}
29f2cf57