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

Unified Diff: base/metrics/histogram_delta_serialization.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/i18n/build_utf8_validator_tables.cc ('k') | base/numerics/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/histogram_delta_serialization.cc
===================================================================
--- base/metrics/histogram_delta_serialization.cc (revision 245415)
+++ base/metrics/histogram_delta_serialization.cc (working copy)
@@ -7,8 +7,8 @@
#include "base/logging.h"
#include "base/metrics/histogram_base.h"
#include "base/metrics/histogram_snapshot_manager.h"
+#include "base/numerics/safe_conversions.h"
#include "base/pickle.h"
-#include "base/safe_numerics.h"
#include "base/values.h"
namespace base {
@@ -75,7 +75,7 @@
const std::vector<std::string>& serialized_deltas) {
for (std::vector<std::string>::const_iterator it = serialized_deltas.begin();
it != serialized_deltas.end(); ++it) {
- Pickle pickle(it->data(), checked_numeric_cast<int>(it->size()));
+ Pickle pickle(it->data(), checked_cast<int>(it->size()));
PickleIterator iter(pickle);
DeserializeHistogramAndAddSamples(&iter);
}
« no previous file with comments | « base/i18n/build_utf8_validator_tables.cc ('k') | base/numerics/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698