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

Unified Diff: ppapi/host/error_conversion.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 | « net/websockets/websocket_channel_test.cc ('k') | printing/image.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/host/error_conversion.cc
===================================================================
--- ppapi/host/error_conversion.cc (revision 245415)
+++ ppapi/host/error_conversion.cc (working copy)
@@ -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 @@
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:
« no previous file with comments | « net/websockets/websocket_channel_test.cc ('k') | printing/image.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698