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

Unified Diff: components/safe_browsing_db/v4_update_protocol_manager.cc

Issue 2113513002: Enforce RAW compression for PVer4 hash prefixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
« no previous file with comments | « no previous file | components/safe_browsing_db/v4_update_protocol_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/safe_browsing_db/v4_update_protocol_manager.cc
diff --git a/components/safe_browsing_db/v4_update_protocol_manager.cc b/components/safe_browsing_db/v4_update_protocol_manager.cc
index a67c4071110dee3e88a72ac19f65f985539b751c..dc994413969716ddd9e6d9f40fb3d0c06a60153b 100644
--- a/components/safe_browsing_db/v4_update_protocol_manager.cc
+++ b/components/safe_browsing_db/v4_update_protocol_manager.cc
@@ -210,6 +210,10 @@ std::string V4UpdateProtocolManager::GetBase64SerializedUpdateRequestProto(
if (!state.empty()) {
list_update_request->set_state(state);
}
+
+ // TODO(vakh): Accept other compression formats also.
+ // See: https://bugs.chromium.org/p/chromium/issues/detail?id=624567
+ list_update_request->mutable_constraints()->add_supported_compressions(RAW);
}
// Serialize and Base64 encode.
« no previous file with comments | « no previous file | components/safe_browsing_db/v4_update_protocol_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698