summaryrefslogtreecommitdiffstats
path: root/chrome/browser/task_manager_resource_providers.cc
diff options
context:
space:
mode:
authorxji@chromium.org <xji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-21 18:32:35 +0000
committerxji@chromium.org <xji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-21 18:32:35 +0000
commit49a7c77691cc0eaa2a7028ce51cd6de9edc78c4e (patch)
treef37b16dc6e7e1f11a80ee04b6e000cb9b7ab6bf9 /chrome/browser/task_manager_resource_providers.cc
parentd885bfe7aba1fdd42cbd86f4ba5f43416987c8ae (diff)
downloadchromium_src-49a7c77691cc0eaa2a7028ce51cd6de9edc78c4e.zip
chromium_src-49a7c77691cc0eaa2a7028ce51cd6de9edc78c4e.tar.gz
chromium_src-49a7c77691cc0eaa2a7028ce51cd6de9edc78c4e.tar.bz2
Fix problem of displaying title with parenthesis in extension.
Wrap title with correctly bidi control characters in windows for display purpose. BUG=43485 TEST=1. open RTL chrome. 2. install Google dictionary extension. 3. extension title "Google Dictionary (by Google)" should be displayed as is in chrome://extensions page, 4. right click the extension icon, title "Google Dictionary (by Google)" should be displayed in extension context menu, 5. extension title should be displayed correctly in other places, such as task manager, etc. Review URL: http://codereview.chromium.org/2015004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47937 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/task_manager_resource_providers.cc')
-rw-r--r--chrome/browser/task_manager_resource_providers.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/chrome/browser/task_manager_resource_providers.cc b/chrome/browser/task_manager_resource_providers.cc
index dfaa76d..f7cc5ab 100644
--- a/chrome/browser/task_manager_resource_providers.cc
+++ b/chrome/browser/task_manager_resource_providers.cc
@@ -528,14 +528,6 @@ TaskManagerExtensionProcessResource::TaskManagerExtensionProcessResource(
pid_ = base::GetProcId(process_handle_);
std::wstring extension_name(UTF8ToWide(GetExtension()->name()));
DCHECK(!extension_name.empty());
- // Since the extension_name will be concatenated with a prefix, we need
- // to explicitly set the extension_name to be LTR format if there is no
- // strong RTL charater in it. Otherwise, if the prefix is an RTL word,
- // the concatenated result might be wrong. For extension named
- // "Great Extension!" the concatenated result would be something like
- // "!Great Extension :NOISNETXE", in which capital letters "NOISNETXE"
- // stand for the Hebrew word for "extension".
- base::i18n::AdjustStringForLocaleDirection(extension_name, &extension_name);
title_ = l10n_util::GetStringF(IDS_TASK_MANAGER_EXTENSION_PREFIX,
extension_name);
}