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

Unified Diff: chrome/browser/local_discovery/privet_url_fetcher.cc

Issue 1502503004: Remove kuint64max. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kint8
Patch Set: rebase 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/local_discovery/privet_url_fetcher.cc
diff --git a/chrome/browser/local_discovery/privet_url_fetcher.cc b/chrome/browser/local_discovery/privet_url_fetcher.cc
index eea13f06061ff8a5477e7763b1e355af3757d9b6..f8cf3912474b8e76081a8c6f90d78ec23d0300a0 100644
--- a/chrome/browser/local_discovery/privet_url_fetcher.cc
+++ b/chrome/browser/local_discovery/privet_url_fetcher.cc
@@ -4,7 +4,10 @@
#include "chrome/browser/local_discovery/privet_url_fetcher.h"
+#include <stdint.h>
+
#include <algorithm>
+#include <limits>
#include "base/bind.h"
#include "base/debug/dump_without_crashing.h"
@@ -175,10 +178,8 @@ void PrivetURLFetcher::Try() {
if (request_type_ == net::URLFetcher::POST) {
if (!upload_file_path_.empty()) {
url_fetcher_->SetUploadFilePath(
- upload_content_type_,
- upload_file_path_,
- 0 /*offset*/,
- kuint64max /*length*/,
+ upload_content_type_, upload_file_path_, 0 /*offset*/,
+ std::numeric_limits<uint64_t>::max() /*length*/,
content::BrowserThread::GetMessageLoopProxyForThread(
content::BrowserThread::FILE));
} else {

Powered by Google App Engine
This is Rietveld 408576698