diff options
author | jschuh@chromium.org <jschuh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-17 03:32:40 +0000 |
---|---|---|
committer | jschuh@chromium.org <jschuh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-17 03:32:40 +0000 |
commit | cb15406554885da0c1e1030ade25d821b05ddac6 (patch) | |
tree | c7024916ab466deba405168655b3e84f51973be2 /cloud_print/gcp20 | |
parent | 8c00ed7b6f62fd8db2f0c99446a01f447327878d (diff) | |
download | chromium_src-cb15406554885da0c1e1030ade25d821b05ddac6.zip chromium_src-cb15406554885da0c1e1030ade25d821b05ddac6.tar.gz chromium_src-cb15406554885da0c1e1030ade25d821b05ddac6.tar.bz2 |
Refactor base/safe_numerics.h
* Move into base/numerics subdirectory.
* Rename files for clarity.
* Add owners.
* Rename checked_numeric_cast to checked_cast.
* Fixup callsites and include paths.
BUG=332611
R=brettw@chromium.org, jam@chromium.org
Review URL: https://codereview.chromium.org/141113003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245418 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cloud_print/gcp20')
-rw-r--r-- | cloud_print/gcp20/prototype/printer_state.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cloud_print/gcp20/prototype/printer_state.cc b/cloud_print/gcp20/prototype/printer_state.cc index 156ebe4..0e12eee 100644 --- a/cloud_print/gcp20/prototype/printer_state.cc +++ b/cloud_print/gcp20/prototype/printer_state.cc @@ -8,7 +8,7 @@ #include "base/json/json_reader.h" #include "base/json/json_writer.h" #include "base/logging.h" -#include "base/safe_numerics.h" +#include "base/numerics/safe_conversions.h" #include "base/values.h" namespace { @@ -74,7 +74,7 @@ bool SaveToFile(const base::FilePath& path, const PrinterState& state) { base::JSONWriter::WriteWithOptions(&json, base::JSONWriter::OPTIONS_PRETTY_PRINT, &json_str); - int size = base::checked_numeric_cast<int>(json_str.size()); + int size = base::checked_cast<int>(json_str.size()); return (file_util::WriteFile(path, json_str.data(), size) == size); } |