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

Unified Diff: chrome/browser/content_settings/permission_bubble_request_impl.cc

Issue 376253005: Migrate the notification permission to the new common permission classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/content_settings/permission_bubble_request_impl.cc
diff --git a/chrome/browser/content_settings/permission_bubble_request_impl.cc b/chrome/browser/content_settings/permission_bubble_request_impl.cc
index 3767de224fc4decfd91b4e4458a22b0b2f448c1e..0de57d6a9e3bb34407484bdb1364766e3b7a15a5 100644
--- a/chrome/browser/content_settings/permission_bubble_request_impl.cc
+++ b/chrome/browser/content_settings/permission_bubble_request_impl.cc
@@ -33,6 +33,9 @@ PermissionBubbleRequestImpl::~PermissionBubbleRequestImpl() {
int PermissionBubbleRequestImpl::GetIconID() const {
int icon_id;
switch (type_) {
+ case CONTENT_SETTINGS_TYPE_NOTIFICATIONS:
+ icon_id = IDR_INFOBAR_DESKTOP_NOTIFICATIONS;
+ break;
Peter Beverloo 2014/07/10 11:29:38 nit: in permission_context_base.cc you add *_NOTIF
Miguel Garcia 2014/07/17 17:24:48 Done.
case CONTENT_SETTINGS_TYPE_MIDI_SYSEX:
icon_id = IDR_ALLOWED_MIDI_SYSEX;
break;
@@ -49,6 +52,9 @@ int PermissionBubbleRequestImpl::GetIconID() const {
base::string16 PermissionBubbleRequestImpl::GetMessageText() const {
int message_id;
switch (type_) {
+ case CONTENT_SETTINGS_TYPE_NOTIFICATIONS:
+ message_id = IDS_NOTIFICATION_PERMISSIONS;
Peter Beverloo 2014/07/10 11:29:39 IDS_NOTIFICATION_PERMISSIONS has <ph name="site">,
Miguel Garcia 2014/07/17 17:24:48 Yes On 2014/07/10 11:29:39, Peter Beverloo wrote:
+ break;
case CONTENT_SETTINGS_TYPE_MIDI_SYSEX:
message_id = IDS_MIDI_SYSEX_INFOBAR_QUESTION;
break;
@@ -70,6 +76,9 @@ base::string16 PermissionBubbleRequestImpl::GetMessageText() const {
base::string16 PermissionBubbleRequestImpl::GetMessageTextFragment() const {
int message_id;
switch (type_) {
+ case CONTENT_SETTINGS_TYPE_NOTIFICATIONS:
+ message_id = IDS_NOTIFICATION_PERMISSIONS_FRAGMENT;
+ break;
case CONTENT_SETTINGS_TYPE_MIDI_SYSEX:
message_id = IDS_MIDI_SYSEX_PERMISSION_FRAGMENT;
break;

Powered by Google App Engine
This is Rietveld 408576698