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

Unified Diff: chrome/browser/extensions/test_extension_dir.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/extensions/test_extension_dir.cc
===================================================================
--- chrome/browser/extensions/test_extension_dir.cc (revision 245415)
+++ chrome/browser/extensions/test_extension_dir.cc (working copy)
@@ -6,7 +6,7 @@
#include "base/file_util.h"
#include "base/json/json_writer.h"
-#include "base/safe_numerics.h"
+#include "base/numerics/safe_conversions.h"
#include "base/test/values_test_util.h"
#include "chrome/browser/extensions/extension_creator.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -31,7 +31,7 @@
void TestExtensionDir::WriteFile(const base::FilePath::StringType& filename,
base::StringPiece contents) {
EXPECT_EQ(
- base::checked_numeric_cast<int>(contents.size()),
+ base::checked_cast<int>(contents.size()),
file_util::WriteFile(
dir_.path().Append(filename), contents.data(), contents.size()));
}
« no previous file with comments | « chrome/browser/extensions/sandboxed_unpacker.cc ('k') | chrome/browser/media_galleries/linux/mtp_read_file_worker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698