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

Unified Diff: chrome/browser/hang_monitor/hung_plugin_action.cc

Issue 1422773008: Fixing remaining VC++ 2015 64-bit build breaks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing unneeded include Created 5 years 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 | « chrome/app/close_handle_hook_win.cc ('k') | chrome/browser/hang_monitor/hung_window_detector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/hang_monitor/hung_plugin_action.cc
diff --git a/chrome/browser/hang_monitor/hung_plugin_action.cc b/chrome/browser/hang_monitor/hung_plugin_action.cc
index 82142862ab0ad00c4cb6474dd4647c88ecf825b0..feff61d952d79b1007c4aabe67327bce74a6f86c 100644
--- a/chrome/browser/hang_monitor/hung_plugin_action.cc
+++ b/chrome/browser/hang_monitor/hung_plugin_action.cc
@@ -8,6 +8,7 @@
#include "base/metrics/histogram.h"
#include "base/version.h"
+#include "base/win/win_util.h"
#include "chrome/browser/ui/simple_message_box.h"
#include "chrome/common/logging_chrome.h"
#include "chrome/grit/generated_resources.h"
@@ -123,11 +124,8 @@ bool HungPluginAction::OnHungWindowDetected(HWND hung_window,
// exists. The property is deleted if the window becomes
// responsive.
continue_hang_detection = false;
-#pragma warning(disable:4311)
- int child_window_message_timeout =
- reinterpret_cast<int>(GetProp(
- hung_window, HungWindowDetector::kHungChildWindowTimeout));
-#pragma warning(default:4311)
+ int child_window_message_timeout = base::win::HandleToUint32(
+ GetProp(hung_window, HungWindowDetector::kHungChildWindowTimeout));
if (child_window_message_timeout) {
child_window_message_timeout *= 2;
#pragma warning(disable:4312)
« no previous file with comments | « chrome/app/close_handle_hook_win.cc ('k') | chrome/browser/hang_monitor/hung_window_detector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698