| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file should not be build on Android but is currently getting built. | 5 // This file should not be build on Android but is currently getting built. |
| 6 // TODO(vakh): Fix that: http://crbug.com/621647 | 6 // TODO(vakh): Fix that: http://crbug.com/621647 |
| 7 | 7 |
| 8 #include "components/safe_browsing_db/v4_local_database_manager.h" | 8 #include "components/safe_browsing_db/v4_local_database_manager.h" |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 } | 254 } |
| 255 | 255 |
| 256 void V4LocalDatabaseManager::UpdateRequestCompleted( | 256 void V4LocalDatabaseManager::UpdateRequestCompleted( |
| 257 std::unique_ptr<ParsedServerResponse> parsed_server_response) { | 257 std::unique_ptr<ParsedServerResponse> parsed_server_response) { |
| 258 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 258 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| 259 v4_database_->ApplyUpdate(std::move(parsed_server_response), | 259 v4_database_->ApplyUpdate(std::move(parsed_server_response), |
| 260 db_updated_callback_); | 260 db_updated_callback_); |
| 261 } | 261 } |
| 262 | 262 |
| 263 void V4LocalDatabaseManager::DatabaseUpdated() { | 263 void V4LocalDatabaseManager::DatabaseUpdated() { |
| 264 v4_update_protocol_manager_->ScheduleNextUpdate( | 264 if (enabled_) { |
| 265 v4_database_->GetStoreStateMap()); | 265 v4_update_protocol_manager_->ScheduleNextUpdate( |
| 266 v4_database_->GetStoreStateMap()); |
| 267 } |
| 266 } | 268 } |
| 267 | 269 |
| 268 } // namespace safe_browsing | 270 } // namespace safe_browsing |
| OLD | NEW |