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

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

Issue 1745024: Make a new yes/no messagebox wrapper function, use it in the bookmark alert.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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
Index: chrome/browser/hang_monitor/hung_plugin_action.cc
===================================================================
--- chrome/browser/hang_monitor/hung_plugin_action.cc (revision 50758)
+++ chrome/browser/hang_monitor/hung_plugin_action.cc (working copy)
@@ -9,6 +9,7 @@
#include "app/l10n_util.h"
#include "app/win_util.h"
#include "base/win_util.h"
+#include "chrome/browser/platform_util.h"
#include "chrome/common/logging_chrome.h"
#include "grit/generated_resources.h"
#include "webkit/glue/plugins/webplugin_delegate_impl.h"
@@ -62,8 +63,7 @@
HungWindowResponseCallback,
reinterpret_cast<ULONG_PTR>(this));
current_hung_plugin_window_ = hung_window;
- const UINT mb_flags = MB_YESNO | MB_ICONQUESTION | MB_SETFOREGROUND;
- if (IDYES == win_util::MessageBox(NULL, msg, title, mb_flags)) {
+ if (platform_util::SimpleYesNoBox(NULL, title, msg)) {
*action = HungWindowNotification::HUNG_WINDOW_TERMINATE_PROCESS;
} else {
// If the user choses to ignore the hung window warning, the

Powered by Google App Engine
This is Rietveld 408576698