diff options
author | avi <avi@chromium.org> | 2015-12-01 08:35:21 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-01 16:36:49 +0000 |
commit | 0d94fda8c494d7a6c27d065d782f42e99d834f46 (patch) | |
tree | 860d9bb1aeb9ce541d959dc4b18fd5e63a3e7cac /jingle/notifier | |
parent | 44c72fad4a2c22eae8fc1e785ae9b4c261550041 (diff) | |
download | chromium_src-0d94fda8c494d7a6c27d065d782f42e99d834f46.zip chromium_src-0d94fda8c494d7a6c27d065d782f42e99d834f46.tar.gz chromium_src-0d94fda8c494d7a6c27d065d782f42e99d834f46.tar.bz2 |
Remove kuint16max.
BUG=138542
Review URL: https://codereview.chromium.org/1475803002
Cr-Commit-Position: refs/heads/master@{#362431}
Diffstat (limited to 'jingle/notifier')
-rw-r--r-- | jingle/notifier/communicator/single_login_attempt.cc | 10 |
1 files changed, 6 insertions, 4 deletions
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 <string> - #include "jingle/notifier/communicator/single_login_attempt.h" -#include "base/basictypes.h" +#include <stdint.h> + +#include <limits> +#include <string> + #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<uint16_t>::max()) { port = kDefaultXmppPort; } redirect_server.set_port(port); |