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

Unified Diff: content/browser/renderer_host/pepper/pepper_truetype_font_list_host.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
Index: content/browser/renderer_host/pepper/pepper_truetype_font_list_host.cc
===================================================================
--- content/browser/renderer_host/pepper/pepper_truetype_font_list_host.cc (revision 245415)
+++ content/browser/renderer_host/pepper/pepper_truetype_font_list_host.cc (working copy)
@@ -6,7 +6,7 @@
#include <algorithm>
-#include "base/safe_numerics.h"
+#include "base/numerics/safe_conversions.h"
#include "base/threading/sequenced_worker_pool.h"
#include "content/browser/renderer_host/pepper/pepper_truetype_font_list.h"
#include "content/common/font_list.h"
@@ -84,7 +84,7 @@
context->reply_msg =
PpapiPluginMsg_TrueTypeFontSingleton_GetFontFamiliesReply(font_families);
- return base::checked_numeric_cast<int32_t>(font_families.size());
+ return base::checked_cast<int32_t>(font_families.size());
}
int32_t FontMessageFilter::OnHostMsgGetFontsInFamily(
@@ -97,7 +97,7 @@
context->reply_msg =
PpapiPluginMsg_TrueTypeFontSingleton_GetFontsInFamilyReply(
fonts_in_family);
- return base::checked_numeric_cast<int32_t>(fonts_in_family.size());
+ return base::checked_cast<int32_t>(fonts_in_family.size());
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698