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

Side by Side Diff: chrome/browser/notifications/message_center_notification_manager.cc

Issue 1925803002: Rename NotificationUIManagerMac to NotificationPlatformBridgeMac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/notifications/notification_platform_bridge_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/message_center_notification_manager.h" 5 #include "chrome/browser/notifications/message_center_notification_manager.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 26 matching lines...) Expand all
37 #if defined(OS_CHROMEOS) 37 #if defined(OS_CHROMEOS)
38 #include "chrome/browser/notifications/login_state_notification_blocker_chromeos .h" 38 #include "chrome/browser/notifications/login_state_notification_blocker_chromeos .h"
39 #include "chrome/browser/ui/ash/multi_user/multi_user_util.h" 39 #include "chrome/browser/ui/ash/multi_user/multi_user_util.h"
40 #endif 40 #endif
41 41
42 #if defined(USE_ASH) 42 #if defined(USE_ASH)
43 #include "ash/shell.h" 43 #include "ash/shell.h"
44 #include "ash/system/web_notification/web_notification_tray.h" 44 #include "ash/system/web_notification/web_notification_tray.h"
45 #endif 45 #endif
46 46
47 // Mac does support native notifications and defines this method
48 // in notification_ui_manager_mac.mm
49 #if !defined(OS_MACOSX)
50 // static
51 NotificationUIManager*
52 NotificationUIManager::CreateNativeNotificationManager() {
53 return nullptr;
54 }
55 #endif
56 47
57 MessageCenterNotificationManager::MessageCenterNotificationManager( 48 MessageCenterNotificationManager::MessageCenterNotificationManager(
58 message_center::MessageCenter* message_center, 49 message_center::MessageCenter* message_center,
59 std::unique_ptr<message_center::NotifierSettingsProvider> settings_provider) 50 std::unique_ptr<message_center::NotifierSettingsProvider> settings_provider)
60 : message_center_(message_center), 51 : message_center_(message_center),
61 settings_provider_(std::move(settings_provider)), 52 settings_provider_(std::move(settings_provider)),
62 system_observer_(this), 53 system_observer_(this),
63 stats_collector_(message_center), 54 stats_collector_(message_center),
64 google_now_stats_collector_(message_center) { 55 google_now_stats_collector_(message_center) {
65 message_center_->AddObserver(this); 56 message_center_->AddObserver(this);
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 it != registry->enabled_extensions().end(); 377 it != registry->enabled_extensions().end();
387 ++it) { 378 ++it) {
388 if ((*it->get()).permissions_data()->HasAPIPermission( 379 if ((*it->get()).permissions_data()->HasAPIPermission(
389 extensions::APIPermission::ID::kNotificationProvider)) { 380 extensions::APIPermission::ID::kNotificationProvider)) {
390 extension_id = (*it->get()).id(); 381 extension_id = (*it->get()).id();
391 return extension_id; 382 return extension_id;
392 } 383 }
393 } 384 }
394 return extension_id; 385 return extension_id;
395 } 386 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/notifications/notification_platform_bridge_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698