summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/extension.h
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/common/extensions/extension.h
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/common/extensions/extension.h')
-rw-r--r--chrome/common/extensions/extension.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h
index 99f7898..9063b12 100644
--- a/chrome/common/extensions/extension.h
+++ b/chrome/common/extensions/extension.h
@@ -421,7 +421,10 @@ class Extension {
// The extension's version.
scoped_ptr<Version> version_;
- // The extension's human-readable name.
+ // The extension's human-readable name. Name is used for display purpose. It
+ // might be wrapped with unicode bidi control characters so that it is
+ // displayed correctly in RTL context.
+ // NOTE: Name is UTF-8 and may contain non-ascii characters.
std::string name_;
// An optional longer description of the extension.