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

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: Minor: Add the explicit keyword for UpdateListIdentifier constructor 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 904117c58e2454166011f8fb55ae36f9ac291acf..3f6fb3c268d889ac557bfb30d2ea6d1c129294ad 100644
--- a/components/safe_browsing_db/v4_local_database_manager.cc
+++ b/components/safe_browsing_db/v4_local_database_manager.cc
@@ -254,9 +254,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() {
« no previous file with comments | « components/safe_browsing_db/v4_local_database_manager.h ('k') | components/safe_browsing_db/v4_protocol_manager_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698