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

Unified Diff: chrome/browser/ui/views/message_center/web_notification_tray.cc

Issue 318173002: Fix the notification center label. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Notification Center Title: Set in ctor. Created 6 years, 6 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
Index: chrome/browser/ui/views/message_center/web_notification_tray.cc
diff --git a/chrome/browser/ui/views/message_center/web_notification_tray.cc b/chrome/browser/ui/views/message_center/web_notification_tray.cc
index ced0fea66786202c3fe0b54bc1b4beccb012fede..2c34393f2f3e12982c7987ebf5b56a7478c7a1ac 100644
--- a/chrome/browser/ui/views/message_center/web_notification_tray.cc
+++ b/chrome/browser/ui/views/message_center/web_notification_tray.cc
@@ -15,6 +15,7 @@
#include "chrome/common/pref_names.h"
#include "content/public/browser/notification_service.h"
#include "grit/chromium_strings.h"
+#include "grit/generated_resources.h"
#include "grit/theme_resources.h"
#include "grit/ui_strings.h"
#include "ui/base/l10n/l10n_util.h"
@@ -145,6 +146,9 @@ WebNotificationTray::WebNotificationTray(PrefService* local_state)
local_state);
}
#endif
+ title_ = l10n_util::GetStringFUTF16(
+ IDS_MESSAGE_CENTER_FOOTER_WITH_PRODUCT_TITLE,
+ l10n_util::GetStringUTF16(IDS_SHORT_PRODUCT_NAME));
}
WebNotificationTray::~WebNotificationTray() {
@@ -174,7 +178,8 @@ bool WebNotificationTray::ShowMessageCenter() {
new MessageCenterWidgetDelegate(this,
message_center_tray_.get(),
false, // settings initally invisible
- GetPositionInfo());
+ GetPositionInfo(),
+ title_);
return true;
}
@@ -196,7 +201,8 @@ bool WebNotificationTray::ShowNotifierSettings() {
new MessageCenterWidgetDelegate(this,
message_center_tray_.get(),
true, // settings initally visible
- GetPositionInfo());
+ GetPositionInfo(),
+ title_);
return true;
}
« no previous file with comments | « chrome/browser/ui/views/message_center/web_notification_tray.h ('k') | ui/message_center/views/message_center_bubble.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698