diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-12 17:36:50 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-12 17:36:50 +0000 |
commit | 9ab7d838fba71523a32d1b1e50e5d9a1c20815b2 (patch) | |
tree | 2ed54b69f7178d92b70a54e76e6f29660acdbaa1 /chrome/browser/task_manager_resource_providers.h | |
parent | 8bf26f49ab4b5fd24fe788e4d64c8294280a118d (diff) | |
download | chromium_src-9ab7d838fba71523a32d1b1e50e5d9a1c20815b2.zip chromium_src-9ab7d838fba71523a32d1b1e50e5d9a1c20815b2.tar.gz chromium_src-9ab7d838fba71523a32d1b1e50e5d9a1c20815b2.tar.bz2 |
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
Diffstat (limited to 'chrome/browser/task_manager_resource_providers.h')
-rw-r--r-- | chrome/browser/task_manager_resource_providers.h | 10 |
1 files changed, 2 insertions, 8 deletions
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_; |