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

Unified Diff: chrome/browser/media_galleries/win/snapshot_file_details.cc

Issue 1502503004: Remove kuint64max. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kint8
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/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;
« no previous file with comments | « chrome/browser/local_discovery/privet_url_fetcher.cc ('k') | chrome/browser/safe_browsing/two_phase_uploader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698