summaryrefslogtreecommitdiffstats
path: root/chrome/browser/notifications/notification.h
diff options
context:
space:
mode:
authormiguelg <miguelg@chromium.org>2015-08-20 02:00:30 -0700
committerCommit bot <commit-bot@chromium.org>2015-08-20 09:01:21 +0000
commit53a6dde573f020d57b4fff5923f272f98da66e27 (patch)
treed305d9922fd6896ae4b4d90c0f292a7b58b8c28f /chrome/browser/notifications/notification.h
parent731d73a31fddd700ac7fb2c832a3011f8753f4f8 (diff)
downloadchromium_src-53a6dde573f020d57b4fff5923f272f98da66e27.zip
chromium_src-53a6dde573f020d57b4fff5923f272f98da66e27.tar.gz
chromium_src-53a6dde573f020d57b4fff5923f272f98da66e27.tar.bz2
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}
Diffstat (limited to 'chrome/browser/notifications/notification.h')
-rw-r--r--chrome/browser/notifications/notification.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/chrome/browser/notifications/notification.h b/chrome/browser/notifications/notification.h
index f8f7690..d07ef76 100644
--- a/chrome/browser/notifications/notification.h
+++ b/chrome/browser/notifications/notification.h
@@ -33,12 +33,12 @@ class Notification : public message_center::Notification {
Notification(
message_center::NotificationType type,
- const GURL& origin_url,
const base::string16& title,
const base::string16& body,
const gfx::Image& icon,
const message_center::NotifierId& notifier_id,
const base::string16& display_source,
+ const GURL& origin_url,
const std::string& tag,
const message_center::RichNotificationData& rich_notification_data,
NotificationDelegate* delegate);
@@ -49,9 +49,6 @@ class Notification : public message_center::Notification {
~Notification() override;
Notification& operator=(const Notification& notification);
- // The origin URL of the script which requested the notification.
- const GURL& origin_url() const { return origin_url_; }
-
// A unique identifier used to update (replace) or remove a notification.
const std::string& tag() const { return tag_; }
@@ -61,9 +58,6 @@ class Notification : public message_center::Notification {
NotificationDelegate* delegate() const { return delegate_.get(); }
private:
- // The Origin of the page/worker which created this notification.
- GURL origin_url_;
-
// The user-supplied tag for the notification.
std::string tag_;