summaryrefslogtreecommitdiffstats
path: root/win8/metro_driver/print_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'win8/metro_driver/print_handler.cc')
-rw-r--r--win8/metro_driver/print_handler.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/win8/metro_driver/print_handler.cc b/win8/metro_driver/print_handler.cc
index 3539c9e..c409fcd 100644
--- a/win8/metro_driver/print_handler.cc
+++ b/win8/metro_driver/print_handler.cc
@@ -9,7 +9,7 @@
#include "base/bind.h"
#include "base/logging.h"
-#include "base/safe_numerics.h"
+#include "base/numerics/safe_conversions.h"
#include "chrome/app/chrome_command_ids.h"
#include "win8/metro_driver/chrome_app_view.h"
#include "win8/metro_driver/winrt_utils.h"
@@ -474,7 +474,7 @@ void MetroSetPrintPageContent(size_t page_number,
if (metafile_stream.Get() != NULL) {
ULONG bytes_written = 0;
hr = metafile_stream->Write(data,
- base::checked_numeric_cast<ULONG>(data_size),
+ base::checked_cast<ULONG>(data_size),
&bytes_written);
LOG_IF(ERROR, FAILED(hr)) << "Failed to Write to Stream " << std::hex << hr;
DCHECK(bytes_written == data_size);