summaryrefslogtreecommitdiffstats
path: root/chrome/browser/task_manager.cc
diff options
context:
space:
mode:
authorevanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-22 00:37:21 +0000
committerevanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-22 00:37:21 +0000
commit7a1c5ab3654723cfe4489e6981dcd67da1489f3f (patch)
treefca8c695a824dd834b95c29b5f618f6673066a5f /chrome/browser/task_manager.cc
parentf5eddaf87e378c29412a028e027f91d48fbab551 (diff)
downloadchromium_src-7a1c5ab3654723cfe4489e6981dcd67da1489f3f.zip
chromium_src-7a1c5ab3654723cfe4489e6981dcd67da1489f3f.tar.gz
chromium_src-7a1c5ab3654723cfe4489e6981dcd67da1489f3f.tar.bz2
Remove use of wide characters in stats table identifiers.
Review URL: http://codereview.chromium.org/11544 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5880 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/task_manager.cc')
-rw-r--r--chrome/browser/task_manager.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/task_manager.cc b/chrome/browser/task_manager.cc
index 009d44c..423a55f 100644
--- a/chrome/browser/task_manager.cc
+++ b/chrome/browser/task_manager.cc
@@ -201,7 +201,7 @@ int TaskManagerTableModel::GetStatsValue(TaskManager::Resource* resource,
int col_id) {
StatsTable* table = StatsTable::current();
if (table != NULL) {
- const wchar_t* counter = table->GetRowName(col_id);
+ const char* counter = table->GetRowName(col_id);
if (counter != NULL && counter[0] != '\0') {
return table->GetCounterValue(counter,
base::GetProcId(resource->GetProcess()));
@@ -783,14 +783,15 @@ void TaskManagerContents::UpdateStatsCounters() {
int max = stats->GetMaxCounters();
// skip the first row (it's header data)
for (int i = 1; i < max; i++) {
- const wchar_t* row = stats->GetRowName(i);
- if (row != NULL && row[0] != L'\0' && !tab_table_->HasColumn(i)) {
+ const char* row = stats->GetRowName(i);
+ if (row != NULL && row[0] != '\0' && !tab_table_->HasColumn(i)) {
// TODO(erikkay): Use l10n to get display names for stats. Right
// now we're just displaying the internal counter name. Perhaps
// stat names not in the string table would be filtered out.
// TODO(erikkay): Width is hard-coded right now, so many column
// names are clipped.
- views::TableColumn col(i, row, views::TableColumn::RIGHT, 90, 0);
+ views::TableColumn col(i, ASCIIToWide(row), views::TableColumn::RIGHT,
+ 90, 0);
col.sortable = true;
columns_.push_back(col);
tab_table_->AddColumn(col);