Chromium Code Reviews| 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..db96b33be64c40849755e952d445268339e75acb 100644 |
| --- a/chrome/browser/hang_monitor/hung_plugin_action.cc |
| +++ b/chrome/browser/hang_monitor/hung_plugin_action.cc |
| @@ -16,6 +16,10 @@ |
| #include "ui/base/l10n/l10n_util.h" |
| #include "ui/gfx/win/hwnd_util.h" |
|
ananta
2015/11/18 19:13:42
The OS_WIN ifdef is not needed. This file is windo
|
| +#if defined(OS_WIN) |
| +#include "base/win/win_util.h" |
| +#endif |
| + |
| namespace { |
| const wchar_t kGTalkPluginName[] = L"Google Talk Plugin"; |
| @@ -123,11 +127,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) |