Commit ab8b2046 authored by Meera Srinivasan's avatar Meera Srinivasan Committed by Commit Bot

Renamed hostname to hostname_hash

Change-Id: Ifb0e6255745bf0e25919e53c5c463ad30de9a4bf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2304964
Commit-Queue: Joe Downing <joedow@chromium.org>
Reviewed-by: default avatarJoe Downing <joedow@chromium.org>
Cr-Commit-Position: refs/heads/master@{#789957}
parent a14dd720
......@@ -360,7 +360,7 @@ apis::v1::HeartbeatRequest HeartbeatSender::CreateHeartbeatRequest() {
// a Linux OS.
#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
if (is_googler_) {
heartbeat.set_hostname(base::MD5String(net::GetHostName()));
heartbeat.set_hostname_hash(base::MD5String(net::GetHostName()));
}
#endif
return heartbeat;
......
......@@ -77,9 +77,9 @@ void ValidateHeartbeat(const apis::v1::HeartbeatRequest& request,
is_linux = true;
#endif
if (is_googler && is_linux) {
ASSERT_TRUE(request.has_hostname());
ASSERT_TRUE(request.has_hostname_hash());
} else {
ASSERT_FALSE(request.has_hostname());
ASSERT_FALSE(request.has_hostname_hash());
}
}
......
......@@ -76,7 +76,7 @@ message HeartbeatRequest {
optional bool is_initial_heartbeat = 11;
// A hash of the local hostname of the machine.
optional string hostname = 12;
optional string hostname_hash = 12;
}
// Sent in response to a HeartbeatRequest.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment