Use base::BindOnce in notifications code

Bug: 923020
Change-Id: Iba9671139625bfde415a0cce6f57c7645b37f16e
Reviewed-on: https://chromium-review.googlesource.com/c/1418170
Reviewed-by: Avi Drissman <[email protected]>
Reviewed-by: Peter Beverloo <[email protected]>
Commit-Queue: Richard Knoll <[email protected]>
Cr-Commit-Position: refs/heads/master@{#626611}
diff --git a/chrome/browser/push_messaging/push_messaging_notification_manager.h b/chrome/browser/push_messaging/push_messaging_notification_manager.h
index c59831b..626d82a 100644
--- a/chrome/browser/push_messaging/push_messaging_notification_manager.h
+++ b/chrome/browser/push_messaging/push_messaging_notification_manager.h
@@ -53,7 +53,7 @@
   void EnforceUserVisibleOnlyRequirements(
       const GURL& origin,
       int64_t service_worker_registration_id,
-      const base::Closure& message_handled_closure);
+      base::OnceClosure message_handled_closure);
 
  private:
   FRIEND_TEST_ALL_PREFIXES(PushMessagingNotificationManagerTest, IsTabVisible);
@@ -66,7 +66,7 @@
   void DidGetNotificationsFromDatabase(
       const GURL& origin,
       int64_t service_worker_registration_id,
-      const base::Closure& message_handled_closure,
+      base::OnceClosure message_handled_closure,
       bool success,
       const std::vector<content::NotificationDatabaseData>& data);
 
@@ -79,13 +79,13 @@
 
   void ProcessSilentPush(const GURL& origin,
                          int64_t service_worker_registration_id,
-                         const base::Closure& message_handled_closure,
+                         base::OnceClosure message_handled_closure,
                          bool silent_push_allowed);
 
   void DidWriteNotificationData(
       const GURL& origin,
       const blink::PlatformNotificationData& notification_data,
-      const base::Closure& message_handled_closure,
+      base::OnceClosure message_handled_closure,
       bool success,
       const std::string& notification_id);