commit | 5feb16fcf80fdca5ab8eb72c834bd30d314dad18 | [log] [tgz] |
---|---|---|
author | Daniel Cheng <[email protected]> | Mon Feb 28 06:52:07 2022 |
committer | Chromium LUCI CQ <[email protected]> | Mon Feb 28 06:52:07 2022 |
tree | fe1baec12efb8999c4529c2b443b9cb55e9f30cd | |
parent | 36d5f1955218c17c7778507dad26b08c7a8e4dac [diff] [blame] |
Migrate base::{size,empty,data} to STL equivalents in //net. Bug: 1299695 Change-Id: I59b68edbd6ddd09a0979a89440a42bc240a2831b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3493186 Reviewed-by: Lei Zhang <[email protected]> Reviewed-by: Kenichi Ishibashi <[email protected]> Owners-Override: Lei Zhang <[email protected]> Commit-Queue: Daniel Cheng <[email protected]> Auto-Submit: Daniel Cheng <[email protected]> Cr-Commit-Position: refs/heads/main@{#975674}
diff --git a/net/websockets/websocket_basic_handshake_stream.cc b/net/websockets/websocket_basic_handshake_stream.cc index dc6763c..a9071434 100644 --- a/net/websockets/websocket_basic_handshake_stream.cc +++ b/net/websockets/websocket_basic_handshake_stream.cc
@@ -70,7 +70,7 @@ std::string GenerateHandshakeChallenge() { std::string raw_challenge(websockets::kRawChallengeLength, '\0'); - crypto::RandBytes(base::data(raw_challenge), raw_challenge.length()); + crypto::RandBytes(std::data(raw_challenge), raw_challenge.length()); std::string encoded_challenge; base::Base64Encode(raw_challenge, &encoded_challenge); return encoded_challenge;