diff options
author | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-18 16:23:18 +0000 |
---|---|---|
committer | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-18 16:23:18 +0000 |
commit | 70edb8606702fd26565cc46fd3075bfe75f68d97 (patch) | |
tree | c2647cc5cd843c5abbc9c90bd6855bd8b0b7c674 /chrome/browser/task_manager.cc | |
parent | 05672cafff847dc3beb0e29e1506bee6a5a7447e (diff) | |
download | chromium_src-70edb8606702fd26565cc46fd3075bfe75f68d97.zip chromium_src-70edb8606702fd26565cc46fd3075bfe75f68d97.tar.gz chromium_src-70edb8606702fd26565cc46fd3075bfe75f68d97.tar.bz2 |
Convert GetDisplayStringInLTRDirectionality from wstring to string16.
BUG=23581
Review URL: http://codereview.chromium.org/3108027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56535 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/task_manager.cc')
-rw-r--r-- | chrome/browser/task_manager.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/browser/task_manager.cc b/chrome/browser/task_manager.cc index 0553ab0..fb236e3 100644 --- a/chrome/browser/task_manager.cc +++ b/chrome/browser/task_manager.cc @@ -126,11 +126,10 @@ string16 TaskManagerModel::GetResourceNetworkUsage(int index) const { return l10n_util::GetStringUTF16(IDS_TASK_MANAGER_NA_CELL_TEXT); if (net_usage == 0) return ASCIIToUTF16("0"); - std::wstring net_byte = - FormatSpeed(net_usage, GetByteDisplayUnits(net_usage), true); + string16 net_byte = WideToUTF16( + FormatSpeed(net_usage, GetByteDisplayUnits(net_usage), true)); // Force number string to have LTR directionality. - base::i18n::GetDisplayStringInLTRDirectionality(&net_byte); - return WideToUTF16Hack(net_byte); + return base::i18n::GetDisplayStringInLTRDirectionality(net_byte); } string16 TaskManagerModel::GetResourceCPUUsage(int index) const { |