Revert of Fixing all of problems found by vc++ /analyze in GCM code (patchset #1 id:1 of https://codereview.chromium.org/713573003/)
Reason for revert: Reverting since it's causing a crash on canary. Original issue's description: > Fixing all of problems found by vc++ /analyze in GCM code > > There was only a minor (harmless) case of variable shadowing. > > BUG=427616 > R=zea@chromium.org > > Committed: https://crrev.com/3e021981ccc2be8de7443ff1a18439551b22ea75 > Cr-Commit-Position: refs/heads/master@{#303338} TBR=zea@chromium.org,brucedawson@chromium.org,fgorski@chromium.org NOTREECHECKS=true NOTRY=true BUG=427616 Review URL: https://codereview.chromium.org/712793003 Cr-Commit-Position: refs/heads/master@{#303396}
This commit is contained in:
@ -552,11 +552,11 @@ void GCMStoreImpl::Backend::SetGServicesSettings(
|
||||
// Remove all existing settings.
|
||||
leveldb::ReadOptions read_options;
|
||||
read_options.verify_checksums = true;
|
||||
scoped_ptr<leveldb::Iterator> db_iter(db_->NewIterator(read_options));
|
||||
for (db_iter->Seek(MakeSlice(kGServiceSettingKeyStart));
|
||||
db_iter->Valid() && db_iter->key().ToString() < kGServiceSettingKeyEnd;
|
||||
db_iter->Next()) {
|
||||
write_batch.Delete(db_iter->key());
|
||||
scoped_ptr<leveldb::Iterator> iter(db_->NewIterator(read_options));
|
||||
for (iter->Seek(MakeSlice(kGServiceSettingKeyStart));
|
||||
iter->Valid() && iter->key().ToString() < kGServiceSettingKeyEnd;
|
||||
iter->Next()) {
|
||||
write_batch.Delete(iter->key());
|
||||
}
|
||||
|
||||
// Add the new settings.
|
||||
|
Reference in New Issue
Block a user