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

Unified Diff: chrome/browser/gtk/task_manager_gtk.h

Issue 345031: Destroy the TaskManagerGtk singleton instance when its window is destroyed, o... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 2 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 | « no previous file | chrome/browser/gtk/task_manager_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/task_manager_gtk.h
===================================================================
--- chrome/browser/gtk/task_manager_gtk.h (revision 30657)
+++ chrome/browser/gtk/task_manager_gtk.h (working copy)
@@ -69,6 +69,9 @@
gint CompareImpl(GtkTreeModel* tree_model, GtkTreeIter* a,
GtkTreeIter* b, int id);
+ // response signal handler that notifies us of dialog destruction.
+ static void OnDestroy(GtkDialog* dialog, TaskManagerGtk* task_manager);
+
// response signal handler that notifies us of dialog responses.
static void OnResponse(GtkDialog* dialog, gint response_id,
TaskManagerGtk* task_manager);
@@ -193,6 +196,9 @@
// The number of processes in |process_list_|.
int process_count_;
+ // The id of the |dialog_| destroy signal handler.
+ gulong destroy_handler_id_;
+
// The context menu controller.
scoped_ptr<ContextMenuController> menu_controller_;
« no previous file with comments | « no previous file | chrome/browser/gtk/task_manager_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698