summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-12 17:36:50 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-12 17:36:50 +0000
commit9ab7d838fba71523a32d1b1e50e5d9a1c20815b2 (patch)
tree2ed54b69f7178d92b70a54e76e6f29660acdbaa1 /chrome
parent8bf26f49ab4b5fd24fe788e4d64c8294280a118d (diff)
downloadchromium_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')
-rw-r--r--chrome/browser/task_manager_resource_providers.cc3
-rw-r--r--chrome/browser/task_manager_resource_providers.h10
2 files changed, 3 insertions, 10 deletions
diff --git a/chrome/browser/task_manager_resource_providers.cc b/chrome/browser/task_manager_resource_providers.cc
index 3007996..6f9b6d0 100644
--- a/chrome/browser/task_manager_resource_providers.cc
+++ b/chrome/browser/task_manager_resource_providers.cc
@@ -576,8 +576,7 @@ void TaskManagerExtensionProcessResourceProvider::AddToTaskManager(
SkBitmap* TaskManagerBrowserProcessResource::default_icon_ = NULL;
TaskManagerBrowserProcessResource::TaskManagerBrowserProcessResource()
- : network_usage_support_(false),
- title_() {
+ : title_() {
pid_ = base::GetCurrentProcId();
bool success = base::OpenPrivilegedProcessHandle(pid_, &process_);
DCHECK(success);
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_;