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

Unified Diff: chrome/browser/views/notifications/balloon_view.cc

Issue 385058: When extensions use notifications, display the name of the extension in UI ra... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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/browser/notifications/notification.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/notifications/balloon_view.cc
===================================================================
--- chrome/browser/views/notifications/balloon_view.cc (revision 31723)
+++ chrome/browser/views/notifications/balloon_view.cc (working copy)
@@ -274,7 +274,7 @@
const std::wstring source_label_text = l10n_util::GetStringF(
IDS_NOTIFICATION_BALLOON_SOURCE_LABEL,
- ASCIIToWide(this->balloon_->notification().origin_url().spec()));
+ this->balloon_->notification().display_source());
views::Label* source_label = new views::Label(source_label_text);
source_label->SetFont(ResourceBundle::GetSharedInstance().GetFont(
@@ -310,7 +310,7 @@
const std::wstring label_text = l10n_util::GetStringF(
IDS_NOTIFICATION_BALLOON_REVOKE_MESSAGE,
- ASCIIToWide(this->balloon_->notification().origin_url().spec()));
+ this->balloon_->notification().display_source());
options_menu_contents_.reset(new views::SimpleMenuModel(this));
options_menu_contents_->AddItem(kRevokePermissionCommand, label_text);
« no previous file with comments | « chrome/browser/notifications/notification.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698