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

Side by Side Diff: chrome/browser/notifications/notification_platform_bridge_mac.mm

Issue 2906883003: Deprecate per notification type delegates. (Closed)
Patch Set: review Created 3 years, 6 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 unified diff | Download patch
OLDNEW
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/notifications/notification_platform_bridge_mac.h" 5 #include "chrome/browser/notifications/notification_platform_bridge_mac.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/i18n/number_formatting.h" 12 #include "base/i18n/number_formatting.h"
13 #include "base/mac/bundle_locations.h" 13 #include "base/mac/bundle_locations.h"
14 #include "base/mac/foundation_util.h" 14 #include "base/mac/foundation_util.h"
15 #include "base/mac/mac_util.h" 15 #include "base/mac/mac_util.h"
16 #include "base/mac/scoped_mach_port.h" 16 #include "base/mac/scoped_mach_port.h"
17 #include "base/mac/scoped_nsobject.h" 17 #include "base/mac/scoped_nsobject.h"
18 #include "base/metrics/histogram_macros.h" 18 #include "base/metrics/histogram_macros.h"
19 #include "base/strings/nullable_string16.h" 19 #include "base/strings/nullable_string16.h"
20 #include "base/strings/string_number_conversions.h" 20 #include "base/strings/string_number_conversions.h"
21 #include "base/strings/sys_string_conversions.h" 21 #include "base/strings/sys_string_conversions.h"
22 #include "chrome/browser/browser_process.h" 22 #include "chrome/browser/browser_process.h"
23 #include "chrome/browser/notifications/notification.h" 23 #include "chrome/browser/notifications/notification.h"
24 #include "chrome/browser/notifications/notification_common.h" 24 #include "chrome/browser/notifications/notification_common.h"
25 #include "chrome/browser/notifications/notification_display_service.h" 25 #include "chrome/browser/notifications/notification_display_service.h"
26 #include "chrome/browser/notifications/notification_display_service_factory.h" 26 #include "chrome/browser/notifications/notification_display_service_factory.h"
27 #include "chrome/browser/notifications/persistent_notification_delegate.h"
28 #include "chrome/browser/notifications/platform_notification_service_impl.h" 27 #include "chrome/browser/notifications/platform_notification_service_impl.h"
29 #include "chrome/browser/profiles/profile.h" 28 #include "chrome/browser/profiles/profile.h"
30 #include "chrome/browser/profiles/profile_manager.h" 29 #include "chrome/browser/profiles/profile_manager.h"
31 #include "chrome/browser/ui/cocoa/notifications/notification_builder_mac.h" 30 #include "chrome/browser/ui/cocoa/notifications/notification_builder_mac.h"
32 #include "chrome/browser/ui/cocoa/notifications/notification_constants_mac.h" 31 #include "chrome/browser/ui/cocoa/notifications/notification_constants_mac.h"
33 #import "chrome/browser/ui/cocoa/notifications/notification_delivery.h" 32 #import "chrome/browser/ui/cocoa/notifications/notification_delivery.h"
34 #import "chrome/browser/ui/cocoa/notifications/notification_response_builder_mac .h" 33 #import "chrome/browser/ui/cocoa/notifications/notification_response_builder_mac .h"
35 #include "chrome/common/features.h" 34 #include "chrome/common/features.h"
36 #include "chrome/grit/generated_resources.h" 35 #include "chrome/grit/generated_resources.h"
37 #include "components/crash/content/app/crashpad.h" 36 #include "components/crash/content/app/crashpad.h"
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 base::scoped_nsobject<CrXPCMachPort> xpcPort( 597 base::scoped_nsobject<CrXPCMachPort> xpcPort(
599 [[CrXPCMachPort alloc] initWithMachSendRight:std::move(exceptionPort)]); 598 [[CrXPCMachPort alloc] initWithMachSendRight:std::move(exceptionPort)]);
600 [proxy setMachExceptionPort:xpcPort]; 599 [proxy setMachExceptionPort:xpcPort];
601 setExceptionPort_ = YES; 600 setExceptionPort_ = YES;
602 } 601 }
603 602
604 return proxy; 603 return proxy;
605 } 604 }
606 605
607 @end 606 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698