summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-28 21:51:40 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-28 21:51:40 +0000
commit53e722718d247bdc2e22028d00fb5c604dcb6a10 (patch)
tree4f16abc8dc674538ced8130698178dc2871f12c2 /chrome
parent768af7b4236b37d685cb5ec5e9ae01afd1c60c50 (diff)
downloadchromium_src-53e722718d247bdc2e22028d00fb5c604dcb6a10.zip
chromium_src-53e722718d247bdc2e22028d00fb5c604dcb6a10.tar.gz
chromium_src-53e722718d247bdc2e22028d00fb5c604dcb6a10.tar.bz2
Include the reason in the notice for blocked content (for Mac, Win and Linux include it already).
BUG=none TEST=Setup a blacklist for cookies, load a site, check that the reason is displayed in the blocking notice. Patch from Jochen Eisinger <eisinger@google.com>. Review URL: http://codereview.chromium.org/523007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35313 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/cocoa/blocked_popup_container_controller.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/blocked_popup_container_controller.mm b/chrome/browser/cocoa/blocked_popup_container_controller.mm
index 528f82a..db6d705 100644
--- a/chrome/browser/cocoa/blocked_popup_container_controller.mm
+++ b/chrome/browser/cocoa/blocked_popup_container_controller.mm
@@ -311,7 +311,8 @@ void GetURLAndTitleForPopup(
string16 reason;
container_->GetHostAndReasonForNotice(i, &host, &reason);
NSString* titleStr =
- l10n_util::GetNSStringF(IDS_NOTICE_TITLE_FORMAT, UTF8ToUTF16(host));
+ l10n_util::GetNSStringF(IDS_NOTICE_TITLE_FORMAT, UTF8ToUTF16(host),
+ reason);
scoped_nsobject<NSMenuItem> item(
[[NSMenuItem alloc] initWithTitle:titleStr
action:@selector(menuAction:)