From 9ab7d838fba71523a32d1b1e50e5d9a1c20815b2 Mon Sep 17 00:00:00 2001 From: "jcampan@chromium.org" Date: Fri, 12 Jun 2009 17:36:50 +0000 Subject: This makes the network column in the task manager not display NA as network usage is available. BUG=http://crbug.com/13958 TEST=Open the task manager, the network column for the browser process should be showing 0. Type something in the location bar, the value should change. Review URL: http://codereview.chromium.org/125056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18290 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/task_manager_resource_providers.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'chrome/browser/task_manager_resource_providers.h') diff --git a/chrome/browser/task_manager_resource_providers.h b/chrome/browser/task_manager_resource_providers.h index d0e9426..a5ee44d 100644 --- a/chrome/browser/task_manager_resource_providers.h +++ b/chrome/browser/task_manager_resource_providers.h @@ -244,13 +244,8 @@ class TaskManagerBrowserProcessResource : public TaskManager::Resource { SkBitmap GetIcon() const; base::ProcessHandle GetProcess() const; - bool SupportNetworkUsage() const { - return network_usage_support_; - } - - void SetSupportNetworkUsage() { - network_usage_support_ = true; - } + bool SupportNetworkUsage() const { return true; } + void SetSupportNetworkUsage() { NOTREACHED(); } // Returns the pid of the browser process. int process_id() const { return pid_; } @@ -258,7 +253,6 @@ class TaskManagerBrowserProcessResource : public TaskManager::Resource { private: base::ProcessHandle process_; int pid_; - bool network_usage_support_; mutable std::wstring title_; static SkBitmap* default_icon_; -- cgit v1.1