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

Unified Diff: ash/system/web_notification/web_notification_tray_unittest.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: ash/system/web_notification/web_notification_tray_unittest.cc
diff --git a/ash/system/web_notification/web_notification_tray_unittest.cc b/ash/system/web_notification/web_notification_tray_unittest.cc
index 6cf8cb12a2281612f3a6a63b53d52216c2249e02..79269a42c7666237e5261df87c12e998577fd6cf 100644
--- a/ash/system/web_notification/web_notification_tray_unittest.cc
+++ b/ash/system/web_notification/web_notification_tray_unittest.cc
@@ -101,14 +101,11 @@ class WebNotificationTrayTest : public test::AshTestBase {
void AddNotification(const std::string& id) {
scoped_ptr<message_center::Notification> notification;
notification.reset(new message_center::Notification(
- message_center::NOTIFICATION_TYPE_SIMPLE,
- id,
+ message_center::NOTIFICATION_TYPE_SIMPLE, id,
base::ASCIIToUTF16("Test Web Notification"),
- base::ASCIIToUTF16("Notification message body."),
- gfx::Image(),
- base::ASCIIToUTF16("www.test.org"),
- message_center::NotifierId(),
- message_center::RichNotificationData(),
+ base::ASCIIToUTF16("Notification message body."), gfx::Image(),
+ base::ASCIIToUTF16("www.test.org"), GURL(),
+ message_center::NotifierId(), message_center::RichNotificationData(),
NULL /* delegate */));
GetMessageCenter()->AddNotification(notification.Pass());
}
@@ -117,14 +114,11 @@ class WebNotificationTrayTest : public test::AshTestBase {
const std::string& new_id) {
scoped_ptr<message_center::Notification> notification;
notification.reset(new message_center::Notification(
- message_center::NOTIFICATION_TYPE_SIMPLE,
- new_id,
+ message_center::NOTIFICATION_TYPE_SIMPLE, new_id,
base::ASCIIToUTF16("Updated Web Notification"),
- base::ASCIIToUTF16("Updated message body."),
- gfx::Image(),
- base::ASCIIToUTF16("www.test.org"),
- message_center::NotifierId(),
- message_center::RichNotificationData(),
+ base::ASCIIToUTF16("Updated message body."), gfx::Image(),
+ base::ASCIIToUTF16("www.test.org"), GURL(),
+ message_center::NotifierId(), message_center::RichNotificationData(),
NULL /* delegate */));
GetMessageCenter()->UpdateNotification(old_id, notification.Pass());
}

Powered by Google App Engine
This is Rietveld 408576698