| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/gtk/process_singleton_dialog.h" | 5 #include "chrome/browser/gtk/process_singleton_dialog.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "chrome/browser/gtk/gtk_util.h" | 9 #include "chrome/browser/gtk/gtk_util.h" |
| 10 #include "grit/chromium_strings.h" | 10 #include "grit/chromium_strings.h" |
| 11 | 11 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 33 gtk_widget_show_all(dialog_); | 33 gtk_widget_show_all(dialog_); |
| 34 MessageLoop::current()->Run(); | 34 MessageLoop::current()->Run(); |
| 35 } | 35 } |
| 36 | 36 |
| 37 // static | 37 // static |
| 38 void ProcessSingletonDialog::OnResponse(GtkWidget* widget, int response, | 38 void ProcessSingletonDialog::OnResponse(GtkWidget* widget, int response, |
| 39 ProcessSingletonDialog* dialog) { | 39 ProcessSingletonDialog* dialog) { |
| 40 gtk_widget_destroy(dialog->dialog_); | 40 gtk_widget_destroy(dialog->dialog_); |
| 41 MessageLoop::current()->Quit(); | 41 MessageLoop::current()->Quit(); |
| 42 } | 42 } |
| OLD | NEW |