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

Unified Diff: chrome/browser/extensions/api/notifications/notifications_api.cc

Issue 13421008: Fix menu for 'disable extension'. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | « no previous file | chrome/browser/notifications/message_center_notification_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/notifications/notifications_api.cc
diff --git a/chrome/browser/extensions/api/notifications/notifications_api.cc b/chrome/browser/extensions/api/notifications/notifications_api.cc
index bee35d557c3efca0dd50d5806dde7930f384498c..5946f3839f0a315d5944f474fea89dcdd1ee3bfe 100644
--- a/chrome/browser/extensions/api/notifications/notifications_api.cc
+++ b/chrome/browser/extensions/api/notifications/notifications_api.cc
@@ -153,7 +153,8 @@ void NotificationsApiFunction::CreateNotification(
id)); // ownership is passed to Notification
Notification notification(type, extension_->url(), icon_url, title, message,
WebKit::WebTextDirectionDefault,
- string16(), UTF8ToUTF16(api_delegate->id()),
+ UTF8ToUTF16(extension_->name()),
+ UTF8ToUTF16(api_delegate->id()),
optional_fields.get(), api_delegate);
g_browser_process->notification_ui_manager()->Add(notification, profile());
@@ -234,7 +235,8 @@ void NotificationsApiFunction::CreateNotification(
id)); // ownership is passed to Notification
Notification notification(type, extension_->url(), icon_url, title, message,
WebKit::WebTextDirectionDefault,
- string16(), UTF8ToUTF16(api_delegate->id()),
+ UTF8ToUTF16(extension_->name()),
+ UTF8ToUTF16(api_delegate->id()),
optional_fields.get(), api_delegate);
g_browser_process->notification_ui_manager()->Add(notification, profile());
« no previous file with comments | « no previous file | chrome/browser/notifications/message_center_notification_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698