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

Unified Diff: remoting/host/security_key/security_key_message_reader.cc

Issue 2230193002: remoting: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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: remoting/host/security_key/security_key_message_reader.cc
diff --git a/remoting/host/security_key/security_key_message_reader.cc b/remoting/host/security_key/security_key_message_reader.cc
index 2e2cf33492160d125fc854ae319617df4c0d9aac..a53d0d0ef3630dace575241accc36502bae998ae 100644
--- a/remoting/host/security_key/security_key_message_reader.cc
+++ b/remoting/host/security_key/security_key_message_reader.cc
@@ -86,8 +86,8 @@ void SecurityKeyMessageReader::ReadMessage() {
}
std::string message_data(total_message_size_bytes, '\0');
- read_result = read_stream_.ReadAtCurrentPos(string_as_array(&message_data),
- total_message_size_bytes);
+ read_result = read_stream_.ReadAtCurrentPos(
+ base::string_as_array(&message_data), total_message_size_bytes);
// The static cast is safe as we know the value is smaller than max int.
if (read_result != static_cast<int>(total_message_size_bytes)) {
LOG(ERROR) << "Failed to read message: " << read_result;

Powered by Google App Engine
This is Rietveld 408576698