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

Side by Side Diff: chrome/browser/ui/gtk/process_singleton_dialog.cc

Issue 14307023: chrome: Use base::MessageLoop. (Part 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/gtk/panels/panel_gtk.cc ('k') | chrome/browser/ui/gtk/protocol_dialog_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 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/ui/gtk/process_singleton_dialog.h" 5 #include "chrome/browser/ui/gtk/process_singleton_dialog.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "chrome/browser/ui/gtk/gtk_util.h" 10 #include "chrome/browser/ui/gtk/gtk_util.h"
(...skipping 15 matching lines...) Expand all
26 message.c_str()); 26 message.c_str());
27 gtk_util::ApplyMessageDialogQuirks(dialog_); 27 gtk_util::ApplyMessageDialogQuirks(dialog_);
28 gtk_window_set_title(GTK_WINDOW(dialog_), 28 gtk_window_set_title(GTK_WINDOW(dialog_),
29 l10n_util::GetStringUTF8(IDS_PRODUCT_NAME).c_str()); 29 l10n_util::GetStringUTF8(IDS_PRODUCT_NAME).c_str());
30 gtk_dialog_add_button(GTK_DIALOG(dialog_), GTK_STOCK_QUIT, 30 gtk_dialog_add_button(GTK_DIALOG(dialog_), GTK_STOCK_QUIT,
31 GTK_RESPONSE_REJECT); 31 GTK_RESPONSE_REJECT);
32 32
33 g_signal_connect(dialog_, "response", G_CALLBACK(OnResponseThunk), this); 33 g_signal_connect(dialog_, "response", G_CALLBACK(OnResponseThunk), this);
34 34
35 gtk_widget_show_all(dialog_); 35 gtk_widget_show_all(dialog_);
36 MessageLoop::current()->Run(); 36 base::MessageLoop::current()->Run();
37 } 37 }
38 38
39 void ProcessSingletonDialog::OnResponse(GtkWidget* dialog, int response_id) { 39 void ProcessSingletonDialog::OnResponse(GtkWidget* dialog, int response_id) {
40 gtk_widget_destroy(dialog_); 40 gtk_widget_destroy(dialog_);
41 MessageLoop::current()->Quit(); 41 base::MessageLoop::current()->Quit();
42 } 42 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/panels/panel_gtk.cc ('k') | chrome/browser/ui/gtk/protocol_dialog_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698