diff options
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); } |