Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2721)

Unified Diff: chrome/browser/media/wv_test_license_server_config.cc

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/media/wv_test_license_server_config.cc
diff --git a/chrome/browser/media/wv_test_license_server_config.cc b/chrome/browser/media/wv_test_license_server_config.cc
index e9db6111f32dd4423485096e33c2f63498cb3178..a29dc9c020ef03631c3b95286580310a67bd11f4 100644
--- a/chrome/browser/media/wv_test_license_server_config.cc
+++ b/chrome/browser/media/wv_test_license_server_config.cc
@@ -10,13 +10,13 @@
#include "base/path_service.h"
#include "base/rand_util.h"
#include "base/strings/stringprintf.h"
+#include "build/build_config.h"
#include "net/base/net_errors.h"
#include "net/socket/tcp_server_socket.h"
#include "net/test/python_utils.h"
-
-const uint16 kMinPort = 17000;
-const uint16 kPortRangeSize = 1000;
+const uint16_t kMinPort = 17000;
+const uint16_t kPortRangeSize = 1000;
// Widevine license server configuration files.
const base::FilePath::CharType kKeysFileName[] =
@@ -104,9 +104,9 @@ bool WVTestLicenseServerConfig::SelectServerPort() {
// Instead of starting from kMinPort, use a random port within that range.
net::IPAddressNumber address;
net::ParseIPLiteralToNumber("127.0.0.1", &address);
- uint16 start_seed = base::RandInt(0, kPortRangeSize);
- uint16 try_port = 0;
- for (uint16 i = 0; i < kPortRangeSize; ++i) {
+ uint16_t start_seed = base::RandInt(0, kPortRangeSize);
+ uint16_t try_port = 0;
+ for (uint16_t i = 0; i < kPortRangeSize; ++i) {
try_port = kMinPort + (start_seed + i) % kPortRangeSize;
net::NetLog::Source source;
net::TCPServerSocket sock(NULL, source);

Powered by Google App Engine
This is Rietveld 408576698