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

Unified Diff: base/i18n/build_utf8_validator_tables.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
« no previous file with comments | « base/base.gypi ('k') | base/metrics/histogram_delta_serialization.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/i18n/build_utf8_validator_tables.cc
===================================================================
--- base/i18n/build_utf8_validator_tables.cc (revision 245415)
+++ base/i18n/build_utf8_validator_tables.cc (working copy)
@@ -40,7 +40,7 @@
#include "base/file_util.h"
#include "base/files/file_path.h"
#include "base/logging.h"
-#include "base/safe_numerics.h"
+#include "base/numerics/safe_conversions.h"
#include "base/strings/stringprintf.h"
#include "third_party/icu/source/common/unicode/utf8.h"
@@ -319,7 +319,7 @@
State(new_state_initializer,
new_state_initializer + arraysize(new_state_initializer)));
const uint8 new_state_number =
- base::checked_numeric_cast<uint8>(states->size() - 1);
+ base::checked_cast<uint8>(states->size() - 1);
CHECK(state_map->insert(std::make_pair(set, new_state_number)).second);
return new_state_number;
}
« no previous file with comments | « base/base.gypi ('k') | base/metrics/histogram_delta_serialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698