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); |
} |