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

Unified Diff: content/child/notifications/notification_manager.cc

Issue 2867693004: Snapshot of all changes to get jumbo in blink and content.
Patch Set: Exclude certain files from jumbo because of a Windows problem Created 3 years, 3 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
« no previous file with comments | « content/child/child_thread_impl.cc ('k') | content/child/service_worker/service_worker_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/notifications/notification_manager.cc
diff --git a/content/child/notifications/notification_manager.cc b/content/child/notifications/notification_manager.cc
index e92f560bb66686afd66ba9067ce3544a820b49b7..b4803db8f95a789c4d5f5c536ffd808a4376db13 100644
--- a/content/child/notifications/notification_manager.cc
+++ b/content/child/notifications/notification_manager.cc
@@ -26,7 +26,7 @@ using blink::WebString;
namespace content {
namespace {
-int CurrentWorkerId() {
+int NotificationCurrentWorkerId() {
return WorkerThread::GetCurrentId();
}
@@ -74,7 +74,7 @@ NotificationManager* NotificationManager::ThreadSpecificInstance(
NotificationManager* manager =
new NotificationManager(thread_safe_sender, notification_dispatcher);
- if (CurrentWorkerId())
+ if (NotificationCurrentWorkerId())
WorkerThread::AddObserver(manager);
return manager;
}
@@ -94,7 +94,7 @@ void NotificationManager::Show(
GURL origin_gurl = url::Origin(origin).GetURL();
int notification_id =
- notification_dispatcher_->GenerateNotificationId(CurrentWorkerId());
+ notification_dispatcher_->GenerateNotificationId(NotificationCurrentWorkerId());
active_page_notifications_[notification_id] = ActiveNotificationData(
delegate, origin_gurl,
@@ -145,7 +145,7 @@ void NotificationManager::ShowPersistent(
// TODO(peter): GenerateNotificationId is more of a request id. Consider
// renaming the method in the NotificationDispatcher if this makes sense.
int request_id =
- notification_dispatcher_->GenerateNotificationId(CurrentWorkerId());
+ notification_dispatcher_->GenerateNotificationId(NotificationCurrentWorkerId());
pending_show_notification_requests_.AddWithID(std::move(callbacks),
request_id);
@@ -177,7 +177,7 @@ void NotificationManager::GetNotifications(
// TODO(peter): GenerateNotificationId is more of a request id. Consider
// renaming the method in the NotificationDispatcher if this makes sense.
int request_id =
- notification_dispatcher_->GenerateNotificationId(CurrentWorkerId());
+ notification_dispatcher_->GenerateNotificationId(NotificationCurrentWorkerId());
pending_get_notification_requests_.AddWithID(std::move(callbacks),
request_id);
« no previous file with comments | « content/child/child_thread_impl.cc ('k') | content/child/service_worker/service_worker_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698