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

Unified Diff: cloud_print/gcp20/prototype/cloud_print_requester.cc

Issue 1499423004: Remove kint32max. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kint9
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
« no previous file with comments | « chrome/utility/media_galleries/pmp_column_reader.cc ('k') | content/browser/appcache/appcache_disk_cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cloud_print/gcp20/prototype/cloud_print_requester.cc
diff --git a/cloud_print/gcp20/prototype/cloud_print_requester.cc b/cloud_print/gcp20/prototype/cloud_print_requester.cc
index cbfdae44caaa1d7195f90a8d4d0e5cfcd2b20ee9..9b94a384fb69463a0d13316b47c6346aca3f9d07 100644
--- a/cloud_print/gcp20/prototype/cloud_print_requester.cc
+++ b/cloud_print/gcp20/prototype/cloud_print_requester.cc
@@ -4,6 +4,10 @@
#include "cloud_print/gcp20/prototype/cloud_print_requester.h"
+#include <stdint.h>
+
+#include <limits>
+
#include "base/bind.h"
#include "base/json/json_writer.h"
#include "base/md5.h"
@@ -122,8 +126,8 @@ void CloudPrintRequester::StartRegistration(const std::string& proxy_id,
const LocalSettings& settings,
const std::string& cdd) {
std::string mime_boundary;
- int r1 = base::RandInt(0, kint32max);
- int r2 = base::RandInt(0, kint32max);
+ int r1 = base::RandInt(0, std::numeric_limits<int32_t>::max());
+ int r2 = base::RandInt(0, std::numeric_limits<int32_t>::max());
base::SStringPrintf(&mime_boundary,
"---------------------------%08X%08X", r1, r2);
« no previous file with comments | « chrome/utility/media_galleries/pmp_column_reader.cc ('k') | content/browser/appcache/appcache_disk_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698