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

Unified Diff: components/safe_browsing_db/v4_database.cc

Issue 2384893002: PVer4: Test checksum on startup outside the hotpath of DB load (Closed)
Patch Set: Remove all histogram related changes. That would be a separate CL Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/safe_browsing_db/v4_database.cc
diff --git a/components/safe_browsing_db/v4_database.cc b/components/safe_browsing_db/v4_database.cc
index efcbe7b1aaa5eea6e23df6f255b8055e8add198c..8131caebbabbc5f7ecf13c2208df30064ac19986 100644
--- a/components/safe_browsing_db/v4_database.cc
+++ b/components/safe_browsing_db/v4_database.cc
@@ -154,13 +154,10 @@ void V4Database::UpdatedStoreReady(ListIdentifier identifier,
bool V4Database::ResetDatabase() {
DCHECK(db_task_runner_->RunsTasksOnCurrentThread());
- bool reset_success = true;
for (const auto& store_map_iter : *store_map_) {
- if (!store_map_iter.second->Reset()) {
- reset_success = false;
- }
+ store_map_iter.second->Reset();
}
- return reset_success;
+ return true;
Scott Hess - ex-Googler 2016/10/05 04:42:13 Does this leave any implementations which can retu
vakh (use Gerrit instead) 2016/10/05 23:49:32 Done.
}
std::unique_ptr<StoreStateMap> V4Database::GetStoreStateMap() {

Powered by Google App Engine
This is Rietveld 408576698