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

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

Issue 2921263002: Remove many delegates, let's see what breaks
Patch Set: compile 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/persistent_notification_handler.h" 5 #include "chrome/browser/notifications/persistent_notification_handler.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/notifications/platform_notification_service_impl.h" 8 #include "chrome/browser/notifications/platform_notification_service_impl.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 10
(...skipping 27 matching lines...) Expand all
38 const GURL notification_origin(origin); 38 const GURL notification_origin(origin);
39 DCHECK(notification_origin.is_valid()); 39 DCHECK(notification_origin.is_valid());
40 40
41 PlatformNotificationServiceImpl::GetInstance()->OnPersistentNotificationClick( 41 PlatformNotificationServiceImpl::GetInstance()->OnPersistentNotificationClick(
42 profile, notification_id, notification_origin, action_index, reply); 42 profile, notification_id, notification_origin, action_index, reply);
43 } 43 }
44 44
45 void PersistentNotificationHandler::OpenSettings(Profile* profile) { 45 void PersistentNotificationHandler::OpenSettings(Profile* profile) {
46 NotificationCommon::OpenNotificationSettings(profile); 46 NotificationCommon::OpenNotificationSettings(profile);
47 } 47 }
48
49 bool PersistentNotificationHandler::ShouldDisplayOnFullScreen(
50 Profile* profile,
51 const std::string& origin) const {
52 return NotificationCommon::ActiveTabIsFullScreen(profile, GURL(origin));
53 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698