| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/push_messaging/push_messaging_notification_manager.h" | 5 #include "chrome/browser/push_messaging/push_messaging_notification_manager.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <bitset> | 9 #include <bitset> |
| 8 | 10 |
| 9 #include "base/metrics/histogram_macros.h" | 11 #include "base/metrics/histogram_macros.h" |
| 10 #include "base/prefs/pref_service.h" | 12 #include "base/prefs/pref_service.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 12 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
| 13 #include "chrome/browser/notifications/platform_notification_service_impl.h" | 15 #include "chrome/browser/notifications/platform_notification_service_impl.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/push_messaging/push_messaging_constants.h" | 17 #include "chrome/browser/push_messaging/push_messaging_constants.h" |
| 16 #include "chrome/common/features.h" | 18 #include "chrome/common/features.h" |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 message_handled_closure.Run(); | 333 message_handled_closure.Run(); |
| 332 return; | 334 return; |
| 333 } | 335 } |
| 334 | 336 |
| 335 PlatformNotificationServiceImpl::GetInstance()->DisplayPersistentNotification( | 337 PlatformNotificationServiceImpl::GetInstance()->DisplayPersistentNotification( |
| 336 profile_, persistent_notification_id, origin, SkBitmap() /* icon */, | 338 profile_, persistent_notification_id, origin, SkBitmap() /* icon */, |
| 337 notification_data); | 339 notification_data); |
| 338 | 340 |
| 339 message_handled_closure.Run(); | 341 message_handled_closure.Run(); |
| 340 } | 342 } |
| OLD | NEW |