summaryrefslogtreecommitdiffstats
path: root/chrome/browser/notifications
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/notifications
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/notifications')
-rw-r--r--chrome/browser/notifications/desktop_notification_service.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/notifications/desktop_notification_service.cc b/chrome/browser/notifications/desktop_notification_service.cc
index 0408bc0..53cc37b 100644
--- a/chrome/browser/notifications/desktop_notification_service.cc
+++ b/chrome/browser/notifications/desktop_notification_service.cc
@@ -447,7 +447,7 @@ std::wstring DesktopNotificationService::DisplayNameForOrigin(
if (ext_service) {
Extension* extension = ext_service->GetExtensionByURL(origin);
if (extension)
- return ASCIIToWide(extension->name());
+ return UTF8ToWide(extension->name());
}
}
return UTF8ToWide(origin.host());