| Index: jingle/notifier/communicator/single_login_attempt.cc
|
| diff --git a/jingle/notifier/communicator/single_login_attempt.cc b/jingle/notifier/communicator/single_login_attempt.cc
|
| index 04c074fbd591d427931b5911957a6bbabed740a4..5b24b5d6dbe1d3ee1963979b89fbb1e24e7e2120 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);
|
|
|