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

Unified Diff: ui/snapshot/snapshot_aura.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 | « ui/base/clipboard/clipboard_win.cc ('k') | win8/metro_driver/print_document_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/snapshot/snapshot_aura.cc
===================================================================
--- ui/snapshot/snapshot_aura.cc (revision 245415)
+++ ui/snapshot/snapshot_aura.cc (working copy)
@@ -7,7 +7,7 @@
#include "base/bind.h"
#include "base/callback.h"
#include "base/logging.h"
-#include "base/safe_numerics.h"
+#include "base/numerics/safe_conversions.h"
#include "base/task_runner_util.h"
#include "cc/output/copy_output_request.h"
#include "cc/output/copy_output_result.h"
@@ -85,7 +85,7 @@
if (!gfx::PNGCodec::Encode(pixels,
gfx::PNGCodec::FORMAT_BGRA,
gfx::Size(bitmap.width(), bitmap.height()),
- base::checked_numeric_cast<int>(bitmap.rowBytes()),
+ base::checked_cast<int>(bitmap.rowBytes()),
true,
std::vector<gfx::PNGCodec::Comment>(),
&png_data->data())) {
« no previous file with comments | « ui/base/clipboard/clipboard_win.cc ('k') | win8/metro_driver/print_document_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698