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

Unified Diff: chrome/browser/notifications/notification.cc

Issue 2151993002: [WebAPKs] Plumb service worker scope to notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into notification_scope Created 4 years, 5 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/notifications/notification.cc
diff --git a/chrome/browser/notifications/notification.cc b/chrome/browser/notifications/notification.cc
index 1bd24964b3a866b642b6a3a134b9fb8eeb0c1fe1..cec64b27f64e53aa6ef25f7e8d324ae3bb332d14 100644
--- a/chrome/browser/notifications/notification.cc
+++ b/chrome/browser/notifications/notification.cc
@@ -32,12 +32,14 @@ Notification::Notification(const std::string& id,
const Notification& notification)
: message_center::Notification(id, notification),
tag_(notification.tag()),
+ service_worker_scope_(notification.service_worker_scope()),
delegate_(notification.delegate()) {
}
Notification::Notification(const Notification& notification)
: message_center::Notification(notification),
tag_(notification.tag()),
+ service_worker_scope_(notification.service_worker_scope()),
delegate_(notification.delegate()) {}
Notification::~Notification() {}
@@ -45,6 +47,7 @@ Notification::~Notification() {}
Notification& Notification::operator=(const Notification& notification) {
message_center::Notification::operator=(notification);
tag_ = notification.tag();
+ service_worker_scope_ = notification.service_worker_scope();
delegate_ = notification.delegate();
return *this;
}
« no previous file with comments | « chrome/browser/notifications/notification.h ('k') | chrome/browser/notifications/notification_platform_bridge_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698