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

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

Issue 3597016: Expands the chrome.experimental.processes extension API.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 | « chrome/browser/extensions/extensions_service.cc ('k') | chrome/browser/task_manager/task_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/task_manager_gtk.cc
===================================================================
--- chrome/browser/gtk/task_manager_gtk.cc (revision 61514)
+++ chrome/browser/gtk/task_manager_gtk.cc (working copy)
@@ -486,6 +486,12 @@
SetInitialDialogSize();
gtk_util::ShowDialog(dialog_);
+ // If the model already has resources, we need to add them before we start
+ // observing events.
+ if (model_->ResourceCount() > 0) {
+ OnItemsAdded(0, model_->ResourceCount());
+ }
+
model_->AddObserver(this);
}
« no previous file with comments | « chrome/browser/extensions/extensions_service.cc ('k') | chrome/browser/task_manager/task_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698