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

Unified Diff: chrome/common/cloud_print/cloud_print_helpers.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
Index: chrome/common/cloud_print/cloud_print_helpers.cc
diff --git a/chrome/common/cloud_print/cloud_print_helpers.cc b/chrome/common/cloud_print/cloud_print_helpers.cc
index c2e1614735120b2b88116822ff0a9570fd7ef513..e11376c8896e058d4d553c9744f72f8588200401 100644
--- a/chrome/common/cloud_print/cloud_print_helpers.cc
+++ b/chrome/common/cloud_print/cloud_print_helpers.cc
@@ -4,6 +4,10 @@
#include "chrome/common/cloud_print/cloud_print_helpers.h"
+#include <stdint.h>
+
+#include <limits>
+
#include "base/json/json_reader.h"
#include "base/logging.h"
#include "base/md5.h"
@@ -205,8 +209,8 @@ std::string GetMultipartMimeType(const std::string& mime_boundary) {
// Create a MIME boundary marker (27 '-' characters followed by 16 hex digits).
void CreateMimeBoundaryForUpload(std::string* out) {
- 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(out, "---------------------------%08X%08X", r1, r2);
}
« no previous file with comments | « chrome/browser/ui/panels/panel_drag_controller.cc ('k') | chrome/utility/media_galleries/pmp_column_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698