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

Unified Diff: content/browser/fileapi/blob_url_request_job_unittest.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: content/browser/fileapi/blob_url_request_job_unittest.cc
===================================================================
--- content/browser/fileapi/blob_url_request_job_unittest.cc (revision 245415)
+++ content/browser/fileapi/blob_url_request_job_unittest.cc (working copy)
@@ -9,8 +9,8 @@
#include "base/files/scoped_temp_dir.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+#include "base/numerics/safe_conversions.h"
#include "base/run_loop.h"
-#include "base/safe_numerics.h"
#include "base/time/time.h"
#include "content/public/test/test_file_system_context.h"
#include "net/base/io_buffer.h"
@@ -287,7 +287,7 @@
const std::vector<BlobData::Item>& items = blob_data_->items();
for (std::vector<BlobData::Item>::const_iterator it = items.begin();
it != items.end(); ++it) {
- int64 length = base::checked_numeric_cast<int64>(it->length());
+ int64 length = base::checked_cast<int64>(it->length());
CHECK(length <= kint64max - total);
total += length;
}

Powered by Google App Engine
This is Rietveld 408576698