Fix 2 ClangInliner findings:
* The use of this symbol has been deprecated and marked for inlining. The function being deprecated is proto2::MessageLite::ParseFromArray. (2 times)
See go/inliner-lsc for more information on why you've received this change and why it is important.
This CL looks good? Just LGTM and Approve it!
This CL doesn’t look good? This is what you can do:
* Revert this CL, by replying "REVERT: <provide reason>"
* File a bug under go/inliner-bug for category ClangInliner if there's an issue with the CL content.
* File a bug under go/rosie-bug if there's an issue with how the CL was managed.
* For all other issues such as the formatting of the CL, please file a bug under
go/clrobot-bug.
* Revert this CL and not get a CL that cleans up these paths in the future by
replying "BLOCKLIST: <provide reason>". This is not reversible! We recommend to
opt out the respective paths in your CL Robot configuration instead:
go/clrobot-opt-out.
This CL was generated by CL Robot - a tool that cleans up code findings
(go/clrobot). The affected code paths have been enabled for CL Robot in //depot/google3/METADATA by
following go/clrobot#how-to-opt-in. Anything wrong with the signup? File a bug
at go/clrobot-bug.
#clrobot #third_party-protobuf-message_lite.h
Tested:
Local presubmit tests passed.
PiperOrigin-RevId: 825964501
diff --git a/quiche/quic/core/crypto/quic_crypto_server_config.cc b/quiche/quic/core/crypto/quic_crypto_server_config.cc
index b6c176c..5507068 100644
--- a/quiche/quic/core/crypto/quic_crypto_server_config.cc
+++ b/quiche/quic/core/crypto/quic_crypto_server_config.cc
@@ -1784,12 +1784,12 @@
return SOURCE_ADDRESS_TOKEN_DECRYPTION_FAILURE;
}
- if (!tokens.ParseFromArray(plaintext.data(), plaintext.size())) {
+ if (!tokens.ParseFromString(plaintext)) {
// Some clients might still be using the old source token format so
// attempt to parse that format.
// TODO(rch): remove this code once the new format is ubiquitous.
SourceAddressToken old_source_token;
- if (!old_source_token.ParseFromArray(plaintext.data(), plaintext.size())) {
+ if (!old_source_token.ParseFromString(plaintext)) {
return SOURCE_ADDRESS_TOKEN_PARSE_FAILURE;
}
*tokens.add_tokens() = old_source_token;