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

Unified Diff: components/safe_browsing_db/v4_local_database_manager.cc

Issue 2103693002: SafeBrowsing PVer4: Send mutable response to the database and the stores (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@02_ReadFromDisk
Patch Set: Created 4 years, 6 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_local_database_manager.cc
diff --git a/components/safe_browsing_db/v4_local_database_manager.cc b/components/safe_browsing_db/v4_local_database_manager.cc
index f1f484ce8e74b30ddc3ca2afe4d529756fe7ef05..b1692bc5ff025f699d99fca0efd3b99fe14ef5c7 100644
--- a/components/safe_browsing_db/v4_local_database_manager.cc
+++ b/components/safe_browsing_db/v4_local_database_manager.cc
@@ -251,9 +251,10 @@ void V4LocalDatabaseManager::StopOnIOThread(bool shutdown) {
}
void V4LocalDatabaseManager::UpdateRequestCompleted(
- const std::vector<ListUpdateResponse>& responses) {
+ std::unique_ptr<ParsedServerResponse> parsed_server_response) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
- v4_database_->ApplyUpdate(responses, db_updated_callback_);
+ v4_database_->ApplyUpdate(std::move(parsed_server_response),
+ db_updated_callback_);
}
void V4LocalDatabaseManager::DatabaseUpdated() {

Powered by Google App Engine
This is Rietveld 408576698