summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk
diff options
context:
space:
mode:
authorcreis@google.com <creis@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-13 22:24:14 +0000
committercreis@google.com <creis@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-13 22:24:14 +0000
commit6ec6313db465cf63b31344307df78f2baf394dce (patch)
tree6c8913551b5a1b85cd2712d0424030823644c51d /chrome/browser/gtk
parent0c328d95376293dac03e78bbe6bac625b5e9fdbb (diff)
downloadchromium_src-6ec6313db465cf63b31344307df78f2baf394dce.zip
chromium_src-6ec6313db465cf63b31344307df78f2baf394dce.tar.gz
chromium_src-6ec6313db465cf63b31344307df78f2baf394dce.tar.bz2
Revert 62458 - Expands the chrome.experimental.processes extension API.
Adds an onUpdated event that reports process metrics from the TaskManager, and modifies the TaskManager to support multiple independent observers. BUG=32302 TEST=ExtensionApiTest.Processes browsertest TEST=process_monitor sample extension Review URL: http://codereview.chromium.org/3597016 TBR=jrg@google.com git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62464 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk')
-rw-r--r--chrome/browser/gtk/task_manager_gtk.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/chrome/browser/gtk/task_manager_gtk.cc b/chrome/browser/gtk/task_manager_gtk.cc
index 4c27155..c03db6b8 100644
--- a/chrome/browser/gtk/task_manager_gtk.cc
+++ b/chrome/browser/gtk/task_manager_gtk.cc
@@ -486,12 +486,6 @@ void TaskManagerGtk::Init() {
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);
}