Commit 2bacf0ed authored by vakh's avatar vakh Committed by Commit bot

Tiny: Check if the local DB manager is still enabled before scheduling update

BUG=630784, 543161

Review-Url: https://codereview.chromium.org/2181583004
Cr-Commit-Position: refs/heads/master@{#407526}
parent f4c12df4
...@@ -261,8 +261,10 @@ void V4LocalDatabaseManager::UpdateRequestCompleted( ...@@ -261,8 +261,10 @@ void V4LocalDatabaseManager::UpdateRequestCompleted(
} }
void V4LocalDatabaseManager::DatabaseUpdated() { void V4LocalDatabaseManager::DatabaseUpdated() {
v4_update_protocol_manager_->ScheduleNextUpdate( if (enabled_) {
v4_database_->GetStoreStateMap()); v4_update_protocol_manager_->ScheduleNextUpdate(
v4_database_->GetStoreStateMap());
}
} }
} // namespace safe_browsing } // namespace safe_browsing
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment