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

Unified Diff: net/url_request/url_request_backoff_manager.cc

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef 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
« no previous file with comments | « net/url_request/url_request_backoff_manager.h ('k') | net/url_request/url_request_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_backoff_manager.cc
diff --git a/net/url_request/url_request_backoff_manager.cc b/net/url_request/url_request_backoff_manager.cc
index f1010ef5d1489f2f2088cea8ca260633f693bb0e..86fa9650dcaf023810e73b1e02c8a8bbd9a16b9b 100644
--- a/net/url_request/url_request_backoff_manager.cc
+++ b/net/url_request/url_request_backoff_manager.cc
@@ -12,9 +12,9 @@
namespace net {
-const uint16 URLRequestBackoffManager::kMinimumBackoffInSeconds = 1;
-const uint16 URLRequestBackoffManager::kMaximumBackoffInSeconds = 50000;
-const uint16 URLRequestBackoffManager::kNewEntriesBetweenCollecting = 200;
+const uint16_t URLRequestBackoffManager::kMinimumBackoffInSeconds = 1;
+const uint16_t URLRequestBackoffManager::kMaximumBackoffInSeconds = 50000;
+const uint16_t URLRequestBackoffManager::kNewEntriesBetweenCollecting = 200;
URLRequestBackoffManager::URLRequestBackoffManager()
: new_entries_since_last_gc_(0) {
@@ -113,7 +113,7 @@ bool URLRequestBackoffManager::GetBackoffTime(HttpResponseHeaders* headers,
std::string value;
void* iter = NULL;
while (headers->EnumerateHeader(&iter, name, &value)) {
- int64 seconds;
+ int64_t seconds;
base::StringToInt64(value, &seconds);
if (seconds >= kMinimumBackoffInSeconds &&
seconds <= kMaximumBackoffInSeconds) {
« no previous file with comments | « net/url_request/url_request_backoff_manager.h ('k') | net/url_request/url_request_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698