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

Unified Diff: win8/metro_driver/print_document_source.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/snapshot/snapshot_aura.cc ('k') | win8/metro_driver/print_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: win8/metro_driver/print_document_source.cc
===================================================================
--- win8/metro_driver/print_document_source.cc (revision 245415)
+++ win8/metro_driver/print_document_source.cc (working copy)
@@ -8,7 +8,7 @@
#include <windows.graphics.display.h>
#include "base/logging.h"
-#include "base/safe_numerics.h"
+#include "base/numerics/safe_conversions.h"
namespace {
@@ -253,7 +253,7 @@
return S_FALSE;
hr = dxgi_preview_target_->SetJobPageCount(
PageCountType::FinalPageCount,
- base::checked_numeric_cast<UINT32>(page_count));
+ base::checked_cast<UINT32>(page_count));
if (FAILED(hr)) {
LOG(ERROR) << "Failed to SetJobPageCount " << std::hex << hr;
return hr;
« no previous file with comments | « ui/snapshot/snapshot_aura.cc ('k') | win8/metro_driver/print_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698