Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Unified Diff: chrome/browser/ui/cocoa/notifications/message_center_tray_bridge.mm

Issue 22441006: [MC] Add the product name to the tray controller's title. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move string Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | ui/message_center/cocoa/tray_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/notifications/message_center_tray_bridge.mm
diff --git a/chrome/browser/ui/cocoa/notifications/message_center_tray_bridge.mm b/chrome/browser/ui/cocoa/notifications/message_center_tray_bridge.mm
index 9185998e5f69d430570ad9dd2526cb3feb4ab566..e157927924fec3d3c8d5ed7056999d9c4a7fe4c1 100644
--- a/chrome/browser/ui/cocoa/notifications/message_center_tray_bridge.mm
+++ b/chrome/browser/ui/cocoa/notifications/message_center_tray_bridge.mm
@@ -9,12 +9,14 @@
#include "base/message_loop/message_loop.h"
#include "chrome/browser/browser_process.h"
#include "grit/chromium_strings.h"
+#include "grit/generated_resources.h"
#include "grit/ui_strings.h"
#include "ui/base/l10n/l10n_util.h"
#import "ui/base/l10n/l10n_util_mac.h"
#import "ui/message_center/cocoa/popup_collection.h"
#import "ui/message_center/cocoa/status_item_view.h"
#import "ui/message_center/cocoa/tray_controller.h"
+#import "ui/message_center/cocoa/tray_view_controller.h"
#include "ui/message_center/message_center.h"
#include "ui/message_center/message_center_tray.h"
@@ -119,6 +121,9 @@ void MessageCenterTrayBridge::OpenTrayWindow() {
DCHECK(!tray_controller_);
tray_controller_.reset(
[[MCTrayController alloc] initWithMessageCenterTray:tray_.get()]);
+ [[tray_controller_ viewController] setTrayTitle:
+ l10n_util::GetNSStringF(IDS_MESSAGE_CENTER_FOOTER_WITH_PRODUCT_TITLE,
+ l10n_util::GetStringUTF16(IDS_SHORT_PRODUCT_NAME))];
UpdateStatusItem();
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | ui/message_center/cocoa/tray_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698