Index: trunk/src/chrome/browser/ui/gtk/process_singleton_dialog.cc |
=================================================================== |
--- trunk/src/chrome/browser/ui/gtk/process_singleton_dialog.cc (revision 222182) |
+++ trunk/src/chrome/browser/ui/gtk/process_singleton_dialog.cc (working copy) |
@@ -12,15 +12,11 @@ |
#include "ui/base/l10n/l10n_util.h" |
// static |
-bool ProcessSingletonDialog::ShowAndRun(const std::string& message, |
- const std::string& relaunch_text) { |
- ProcessSingletonDialog dialog(message, relaunch_text); |
- return dialog.GetResponseId() == GTK_RESPONSE_ACCEPT; |
+void ProcessSingletonDialog::ShowAndRun(const std::string& message) { |
+ ProcessSingletonDialog dialog(message); |
} |
-ProcessSingletonDialog::ProcessSingletonDialog( |
- const std::string& message, |
- const std::string& relaunch_text) { |
+ProcessSingletonDialog::ProcessSingletonDialog(const std::string& message) { |
dialog_ = gtk_message_dialog_new( |
NULL, |
static_cast<GtkDialogFlags>(0), |
@@ -33,9 +29,6 @@ |
l10n_util::GetStringUTF8(IDS_PRODUCT_NAME).c_str()); |
gtk_dialog_add_button(GTK_DIALOG(dialog_), GTK_STOCK_QUIT, |
GTK_RESPONSE_REJECT); |
- gtk_dialog_add_button(GTK_DIALOG(dialog_), relaunch_text.c_str(), |
- GTK_RESPONSE_ACCEPT); |
- gtk_dialog_set_default_response(GTK_DIALOG(dialog_), GTK_RESPONSE_ACCEPT); |
g_signal_connect(dialog_, "response", G_CALLBACK(OnResponseThunk), this); |
@@ -44,7 +37,6 @@ |
} |
void ProcessSingletonDialog::OnResponse(GtkWidget* dialog, int response_id) { |
- response_id_ = response_id; |
gtk_widget_destroy(dialog_); |
base::MessageLoop::current()->Quit(); |
} |