From 6516805e8c69ac65bcb7d52a2a208be97a7d2a50 Mon Sep 17 00:00:00 2001 From: avi Date: Tue, 1 Dec 2015 11:27:07 -0800 Subject: Remove kuint16max. BUG=138542 Committed: https://crrev.com/0d94fda8c494d7a6c27d065d782f42e99d834f46 Cr-Commit-Position: refs/heads/master@{#362431} Review URL: https://codereview.chromium.org/1475803002 Cr-Commit-Position: refs/heads/master@{#362472} --- jingle/notifier/communicator/single_login_attempt.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'jingle') diff --git a/jingle/notifier/communicator/single_login_attempt.cc b/jingle/notifier/communicator/single_login_attempt.cc index 04c074f..5b24b5d 100644 --- a/jingle/notifier/communicator/single_login_attempt.cc +++ b/jingle/notifier/communicator/single_login_attempt.cc @@ -2,11 +2,13 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include - #include "jingle/notifier/communicator/single_login_attempt.h" -#include "base/basictypes.h" +#include + +#include +#include + #include "base/logging.h" #include "base/strings/string_number_conversions.h" #include "base/strings/string_split.h" @@ -73,7 +75,7 @@ net::HostPortPair ParseRedirectText(const std::string& redirect_text) { if (!base::StringToInt(parts[1], &port)) { port = kDefaultXmppPort; } - if (port <= 0 || port > kuint16max) { + if (port <= 0 || port > std::numeric_limits::max()) { port = kDefaultXmppPort; } redirect_server.set_port(port); -- cgit v1.1