| Index: content/browser/indexed_db/leveldb/leveldb_database.cc
|
| diff --git a/content/browser/indexed_db/leveldb/leveldb_database.cc b/content/browser/indexed_db/leveldb/leveldb_database.cc
|
| index 53b3b662afd875d3173109069ec48fa8804a48c8..601fd4f95e3be84f66cea0e787e704db836678b4 100644
|
| --- a/content/browser/indexed_db/leveldb/leveldb_database.cc
|
| +++ b/content/browser/indexed_db/leveldb/leveldb_database.cc
|
| @@ -242,21 +242,18 @@ bool LevelDBDatabase::Remove(const LevelDBSlice& key) {
|
| }
|
|
|
| bool LevelDBDatabase::Get(const LevelDBSlice& key,
|
| - std::vector<char>& value,
|
| + std::string* value,
|
| bool& found,
|
| const LevelDBSnapshot* snapshot) {
|
| found = false;
|
| - std::string result;
|
| leveldb::ReadOptions read_options;
|
| read_options.verify_checksums = true; // TODO(jsbell): Disable this if the
|
| // performance impact is too great.
|
| read_options.snapshot = snapshot ? snapshot->snapshot_ : 0;
|
|
|
| - const leveldb::Status s = db_->Get(read_options, MakeSlice(key), &result);
|
| + const leveldb::Status s = db_->Get(read_options, MakeSlice(key), value);
|
| if (s.ok()) {
|
| found = true;
|
| - value.clear();
|
| - value.insert(value.end(), result.begin(), result.end());
|
| return true;
|
| }
|
| if (s.IsNotFound())
|
|
|