| Index: chrome/browser/ui/views/about_ipc_dialog.cc
|
| diff --git a/chrome/browser/ui/views/about_ipc_dialog.cc b/chrome/browser/ui/views/about_ipc_dialog.cc
|
| index f9121dbdf4f435eab5e076366b421311eebb4fa4..3b9b4b6d7fd72fd4eb2fa2fd64d48f90aa81659d 100644
|
| --- a/chrome/browser/ui/views/about_ipc_dialog.cc
|
| +++ b/chrome/browser/ui/views/about_ipc_dialog.cc
|
| @@ -60,7 +60,7 @@ enum {
|
|
|
| // The singleton dialog box. This is non-NULL when a dialog is active so we
|
| // know not to create a new one.
|
| -AboutIPCDialog* g_active_dialog = NULL;
|
| +AboutIPCDialog* g_dialog = NULL;
|
|
|
| std::set<int> disabled_messages;
|
|
|
| @@ -200,15 +200,15 @@ AboutIPCDialog::AboutIPCDialog()
|
| }
|
|
|
| AboutIPCDialog::~AboutIPCDialog() {
|
| - g_active_dialog = NULL;
|
| + g_dialog = NULL;
|
| IPC::Logging::GetInstance()->SetConsumer(NULL);
|
| }
|
|
|
| // static
|
| void AboutIPCDialog::RunDialog() {
|
| - if (!g_active_dialog) {
|
| - g_active_dialog = new AboutIPCDialog;
|
| - views::Widget::CreateWindow(g_active_dialog)->Show();
|
| + if (!g_dialog) {
|
| + g_dialog = new AboutIPCDialog;
|
| + views::DialogDelegate::CreateDialogWidget(g_dialog, NULL, NULL)->Show();
|
| } else {
|
| // TODO(brettw) it would be nice to focus the existing window.
|
| }
|
| @@ -335,6 +335,10 @@ bool AboutIPCDialog::CanResize() const {
|
| return true;
|
| }
|
|
|
| +bool AboutIPCDialog::UseNewStyleForThisDialog() const {
|
| + return false;
|
| +}
|
| +
|
| void AboutIPCDialog::ButtonPressed(
|
| views::Button* button, const ui::Event& event) {
|
| if (button == track_toggle_) {
|
|
|