Index: chrome/browser/media_galleries/win/snapshot_file_details.cc |
diff --git a/chrome/browser/media_galleries/win/snapshot_file_details.cc b/chrome/browser/media_galleries/win/snapshot_file_details.cc |
index 1a862687f3d947d66aa2b621ef0033f7e48b0076..57a67143e8023be7c13aca4243d1130f20e0c140 100644 |
--- a/chrome/browser/media_galleries/win/snapshot_file_details.cc |
+++ b/chrome/browser/media_galleries/win/snapshot_file_details.cc |
@@ -4,7 +4,9 @@ |
#include "chrome/browser/media_galleries/win/snapshot_file_details.h" |
-#include "base/basictypes.h" |
+#include <stdint.h> |
+ |
+#include <limits> |
/////////////////////////////////////////////////////////////////////////////// |
// SnapshotRequestInfo // |
@@ -60,7 +62,7 @@ bool SnapshotFileDetails::IsSnapshotFileWriteComplete() const { |
bool SnapshotFileDetails::AddBytesWritten(DWORD bytes_written) { |
if ((bytes_written == 0) || |
- (bytes_written_ > kuint64max - bytes_written) || |
+ (bytes_written_ > std::numeric_limits<uint64_t>::max() - bytes_written) || |
(bytes_written_ + bytes_written > file_info_.size)) |
return false; |