Elide origins displayed on web notifications.
WebPush displays notifications including the origin in the context message
field. When such origin is too long it is now elided in a secure acceptable
way.
BUG=509834
Review URL: https://codereview.chromium.org/1292003004
Cr-Commit-Position: refs/heads/master@{#344455}
diff --git a/ash/display/resolution_notification_controller.cc b/ash/display/resolution_notification_controller.cc
index b2238c8..603d480 100644
--- a/ash/display/resolution_notification_controller.cc
+++ b/ash/display/resolution_notification_controller.cc
@@ -225,18 +225,14 @@
ui::ResourceBundle& bundle = ui::ResourceBundle::GetSharedInstance();
scoped_ptr<Notification> notification(new Notification(
- message_center::NOTIFICATION_TYPE_SIMPLE,
- kNotificationId,
- message,
- timeout_message,
- bundle.GetImageNamed(IDR_AURA_NOTIFICATION_DISPLAY),
- base::string16() /* display_source */,
+ message_center::NOTIFICATION_TYPE_SIMPLE, kNotificationId, message,
+ timeout_message, bundle.GetImageNamed(IDR_AURA_NOTIFICATION_DISPLAY),
+ base::string16() /* display_source */, GURL(),
message_center::NotifierId(
message_center::NotifierId::SYSTEM_COMPONENT,
system_notifier::kNotifierDisplayResolutionChange),
- data,
- new ResolutionChangeNotificationDelegate(
- this, change_info_->timeout_count > 0)));
+ data, new ResolutionChangeNotificationDelegate(
+ this, change_info_->timeout_count > 0)));
notification->SetSystemPriority();
message_center->AddNotification(notification.Pass());
}