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

Unified Diff: chrome/browser/ui/gtk/simple_message_box_gtk.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/gtk/reload_button_gtk_unittest.cc ('k') | chrome/browser/ui/gtk/tabs/tab_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/simple_message_box_gtk.cc
diff --git a/chrome/browser/ui/gtk/simple_message_box_gtk.cc b/chrome/browser/ui/gtk/simple_message_box_gtk.cc
index 3ce0150a5d8f6ed9f4320c5d525bcbc3025cd295..1c1b82d3f27b61985b6d88bc2ad6a0a2c0326c38 100644
--- a/chrome/browser/ui/gtk/simple_message_box_gtk.cc
+++ b/chrome/browser/ui/gtk/simple_message_box_gtk.cc
@@ -36,7 +36,7 @@ int g_dialog_response;
void OnDialogResponse(GtkWidget* widget, int response, void* user_data) {
g_dialog_response = response;
gtk_widget_destroy(widget);
- MessageLoop::current()->QuitNow();
+ base::MessageLoop::current()->QuitNow();
}
} // namespace
@@ -74,9 +74,9 @@ MessageBoxResult ShowMessageBox(gfx::NativeWindow parent,
g_signal_connect(dialog, "response", G_CALLBACK(OnDialogResponse), NULL);
gtk_util::ShowDialog(dialog);
// Not gtk_dialog_run as it prevents timers from running in the unit tests.
- MessageLoop::current()->Run();
- return g_dialog_response == GTK_RESPONSE_YES ?
- MESSAGE_BOX_RESULT_YES : MESSAGE_BOX_RESULT_NO;
+ base::MessageLoop::current()->Run();
+ return g_dialog_response == GTK_RESPONSE_YES ? MESSAGE_BOX_RESULT_YES
+ : MESSAGE_BOX_RESULT_NO;
}
gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_OK);
« no previous file with comments | « chrome/browser/ui/gtk/reload_button_gtk_unittest.cc ('k') | chrome/browser/ui/gtk/tabs/tab_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698