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

Unified Diff: components/safe_browsing_db/v4_protocol_manager_util.cc

Issue 2356443002: Set client_id and client_version in requests sent to SafeBrowsing (Closed)
Patch Set: Make GetBase64SerializedUpdateRequestProto non static Created 4 years, 3 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_protocol_manager_util.cc
diff --git a/components/safe_browsing_db/v4_protocol_manager_util.cc b/components/safe_browsing_db/v4_protocol_manager_util.cc
index 857af33c6ee18da7ac3f0dee852285c0643c7bd6..7e0d95acf533a9c1497b386c920729dcaaa6caab 100644
--- a/components/safe_browsing_db/v4_protocol_manager_util.cc
+++ b/components/safe_browsing_db/v4_protocol_manager_util.cc
@@ -496,4 +496,13 @@ void V4ProtocolManagerUtil::GeneratePathVariantsToCheck(
paths->push_back(path + "?" + query);
}
+// static
+void V4ProtocolManagerUtil::SetClientInfoFromConfig(
+ ClientInfo* client_info,
+ const V4ProtocolConfig& config) {
+ DCHECK(client_info);
+ client_info->set_client_id(config.client_name);
+ client_info->set_client_version(config.version);
+}
+
} // namespace safe_browsing
« no previous file with comments | « components/safe_browsing_db/v4_protocol_manager_util.h ('k') | components/safe_browsing_db/v4_update_protocol_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698