Commit d30d346c authored by Robert Liao's avatar Robert Liao Committed by Commit Bot

Fix == Signed/Unsigned Mismatch

kWebEffectiveConnectionTypeMappingCount is size_t while
EFFECTIVE_CONNECTION_TYPE_LAST is from an enum

BUG=

Change-Id: Ifba51d317a5557a5c83139d4ab0d54065c262d11
Reviewed-on: https://chromium-review.googlesource.com/1013149Reviewed-by: default avatarTarun Bansal <tbansal@chromium.org>
Commit-Queue: Robert Liao <robliao@chromium.org>
Cr-Commit-Position: refs/heads/master@{#551404}
parent 94df098d
...@@ -174,7 +174,7 @@ GetAdditionalNavigationRequestClientHintsHeaders( ...@@ -174,7 +174,7 @@ GetAdditionalNavigationRequestClientHintsHeaders(
DCHECK_EQ(blink::kWebEffectiveConnectionTypeMappingCount, DCHECK_EQ(blink::kWebEffectiveConnectionTypeMappingCount,
net::EFFECTIVE_CONNECTION_TYPE_4G + 1u); net::EFFECTIVE_CONNECTION_TYPE_4G + 1u);
DCHECK_EQ(blink::kWebEffectiveConnectionTypeMappingCount, DCHECK_EQ(blink::kWebEffectiveConnectionTypeMappingCount,
net::EFFECTIVE_CONNECTION_TYPE_LAST); static_cast<size_t>(net::EFFECTIVE_CONNECTION_TYPE_LAST));
// Get the client hint headers. // Get the client hint headers.
if (!url.is_valid()) if (!url.is_valid())
...@@ -284,7 +284,7 @@ GetAdditionalNavigationRequestClientHintsHeaders( ...@@ -284,7 +284,7 @@ GetAdditionalNavigationRequestClientHintsHeaders(
DCHECK_EQ(blink::kWebEffectiveConnectionTypeMappingCount, DCHECK_EQ(blink::kWebEffectiveConnectionTypeMappingCount,
net::EFFECTIVE_CONNECTION_TYPE_4G + 1u); net::EFFECTIVE_CONNECTION_TYPE_4G + 1u);
DCHECK_EQ(blink::kWebEffectiveConnectionTypeMappingCount, DCHECK_EQ(blink::kWebEffectiveConnectionTypeMappingCount,
net::EFFECTIVE_CONNECTION_TYPE_LAST); static_cast<size_t>(net::EFFECTIVE_CONNECTION_TYPE_LAST));
int effective_connection_type = int effective_connection_type =
static_cast<int>(estimator->GetEffectiveConnectionType()); static_cast<int>(estimator->GetEffectiveConnectionType());
......
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