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

Unified Diff: chrome/utility/media_galleries/pmp_column_reader.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/utility/media_galleries/pmp_column_reader.cc
diff --git a/chrome/utility/media_galleries/pmp_column_reader.cc b/chrome/utility/media_galleries/pmp_column_reader.cc
index 56527e02357e17d6bb7b53b7364c30fd2e9e8703..b85465dc06bd5c9a62eda1bb09fe38946732adbf 100644
--- a/chrome/utility/media_galleries/pmp_column_reader.cc
+++ b/chrome/utility/media_galleries/pmp_column_reader.cc
@@ -4,7 +4,10 @@
#include "chrome/utility/media_galleries/pmp_column_reader.h"
+#include <stdint.h>
+
#include <cstring>
+#include <limits>
#include "base/files/file.h"
#include "base/files/file_util.h"
@@ -47,7 +50,8 @@ bool PmpColumnReader::ReadFile(base::File* file,
char* data_begin = reinterpret_cast<char*>(data_.get());
- DCHECK(length_ < kint32max); // ReadFile expects an int.
+ DCHECK(length_ <
+ std::numeric_limits<int32_t>::max()); // ReadFile expects an int.
bool success = file->Read(0, data_begin, length_) &&
ParseData(expected_type);
« no previous file with comments | « chrome/common/cloud_print/cloud_print_helpers.cc ('k') | cloud_print/gcp20/prototype/cloud_print_requester.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698