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

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

Issue 141113003: Refactor base/safe_numerics.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 11 months 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/linux/snapshot_file_details.cc
===================================================================
--- chrome/browser/media_galleries/linux/snapshot_file_details.cc (revision 245415)
+++ chrome/browser/media_galleries/linux/snapshot_file_details.cc (working copy)
@@ -4,7 +4,7 @@
#include "chrome/browser/media_galleries/linux/snapshot_file_details.h"
-#include "base/safe_numerics.h"
+#include "base/numerics/safe_conversions.h"
////////////////////////////////////////////////////////////////////////////////
// SnapshotRequestInfo //
@@ -64,5 +64,5 @@
static const uint32 kReadChunkSize = 1024 * 1024;
return std::min(
kReadChunkSize,
- base::checked_numeric_cast<uint32>(file_info_.size) - bytes_written_);
+ base::checked_cast<uint32>(file_info_.size) - bytes_written_);
}

Powered by Google App Engine
This is Rietveld 408576698