summaryrefslogtreecommitdiffstats
path: root/ppapi/host
diff options
context:
space:
mode:
authorjschuh@chromium.org <jschuh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-17 03:32:40 +0000
committerjschuh@chromium.org <jschuh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-17 03:32:40 +0000
commitcb15406554885da0c1e1030ade25d821b05ddac6 (patch)
treec7024916ab466deba405168655b3e84f51973be2 /ppapi/host
parent8c00ed7b6f62fd8db2f0c99446a01f447327878d (diff)
downloadchromium_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 'ppapi/host')
-rw-r--r--ppapi/host/error_conversion.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ppapi/host/error_conversion.cc b/ppapi/host/error_conversion.cc
index da985d3..2b7d73c 100644
--- a/ppapi/host/error_conversion.cc
+++ b/ppapi/host/error_conversion.cc
@@ -4,7 +4,7 @@
#include "ppapi/host/error_conversion.h"
-#include "base/safe_numerics.h"
+#include "base/numerics/safe_conversions.h"
#include "net/base/net_errors.h"
#include "ppapi/c/pp_errors.h"
@@ -13,7 +13,7 @@ namespace host {
int32_t NetErrorToPepperError(int net_error) {
if (net_error > 0)
- return base::checked_numeric_cast<int32_t>(net_error);
+ return base::checked_cast<int32_t>(net_error);
switch (net_error) {
case net::OK: