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

Unified Diff: content/renderer/pepper/content_decryptor_delegate.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 | « content/renderer/media/rtc_video_decoder.cc ('k') | content/renderer/pepper/pepper_truetype_font_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/content_decryptor_delegate.cc
===================================================================
--- content/renderer/pepper/content_decryptor_delegate.cc (revision 245415)
+++ content/renderer/pepper/content_decryptor_delegate.cc (working copy)
@@ -7,7 +7,7 @@
#include "base/callback_helpers.h"
#include "base/debug/trace_event.h"
#include "base/message_loop/message_loop_proxy.h"
-#include "base/safe_numerics.h"
+#include "base/numerics/safe_conversions.h"
#include "content/renderer/pepper/ppb_buffer_impl.h"
#include "media/base/audio_buffer.h"
#include "media/base/audio_decoder_config.h"
@@ -998,7 +998,7 @@
// We should *not* have empty frames in the list.
if (frame_size <= 0 ||
- bytes_left < base::checked_numeric_cast<size_t>(frame_size)) {
+ bytes_left < base::checked_cast<size_t>(frame_size)) {
return false;
}
« no previous file with comments | « content/renderer/media/rtc_video_decoder.cc ('k') | content/renderer/pepper/pepper_truetype_font_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698