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

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

Issue 1292003004: Elide origins displayed on web notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Style nit Created 5 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
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 b870ce898523ec6848cf56a46bbf29e244457af3..788c41eb1e05d06a419a11cfc6ed4d53b40ae9cf 100644
--- a/chrome/browser/extensions/api/notifications/notifications_api.cc
+++ b/chrome/browser/extensions/api/notifications/notifications_api.cc
@@ -358,18 +358,12 @@ bool NotificationsApiFunction::CreateNotification(
NotificationsApiDelegate* api_delegate(new NotificationsApiDelegate(
this, GetProfile(), extension_->id(), id)); // ownership is passed to
// Notification
- Notification notification(type,
- extension_->url(),
- title,
- message,
- icon,
- message_center::NotifierId(
- message_center::NotifierId::APPLICATION,
- extension_->id()),
- base::UTF8ToUTF16(extension_->name()),
- api_delegate->id(),
- optional_fields,
- api_delegate);
+ Notification notification(
+ type, title, message, icon,
+ message_center::NotifierId(message_center::NotifierId::APPLICATION,
+ extension_->id()),
+ base::UTF8ToUTF16(extension_->name()), extension_->url(),
+ api_delegate->id(), optional_fields, api_delegate);
g_browser_process->notification_ui_manager()->Add(notification, GetProfile());
return true;

Powered by Google App Engine
This is Rietveld 408576698