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

Unified Diff: chrome/browser/ui/views/task_manager_view.cc

Issue 7987001: Add profile name to task manager on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/task_manager_view.cc
===================================================================
--- chrome/browser/ui/views/task_manager_view.cc (revision 101489)
+++ chrome/browser/ui/views/task_manager_view.cc (working copy)
@@ -94,6 +94,9 @@
case IDS_TASK_MANAGER_PAGE_COLUMN: // Process
return model_->GetResourceTitle(row);
+ case IDS_TASK_MANAGER_PROFILE_NAME_COLUMN: // Profile Name
+ return model_->GetResourceProfileName(row);
+
case IDS_TASK_MANAGER_NET_COLUMN: // Net
return model_->GetResourceNetworkUsage(row);
@@ -383,6 +386,9 @@
columns_.push_back(ui::TableColumn(IDS_TASK_MANAGER_PAGE_COLUMN,
ui::TableColumn::LEFT, -1, 1));
columns_.back().sortable = true;
+ columns_.push_back(ui::TableColumn(IDS_TASK_MANAGER_PROFILE_NAME_COLUMN,
+ ui::TableColumn::LEFT, -1, 0));
+ columns_.back().sortable = true;
columns_.push_back(ui::TableColumn(IDS_TASK_MANAGER_PHYSICAL_MEM_COLUMN,
ui::TableColumn::RIGHT, -1, 0));
columns_.back().sortable = true;
@@ -427,6 +433,7 @@
table_model_.get(), columns_, highlight_background_resources_);
// Hide some columns by default
+ tab_table_->SetColumnVisibility(IDS_TASK_MANAGER_PROFILE_NAME_COLUMN, false);
tab_table_->SetColumnVisibility(IDS_TASK_MANAGER_PROCESS_ID_COLUMN, false);
tab_table_->SetColumnVisibility(IDS_TASK_MANAGER_SHARED_MEM_COLUMN, false);
tab_table_->SetColumnVisibility(IDS_TASK_MANAGER_PRIVATE_MEM_COLUMN, false);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698