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

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

Issue 2921263002: Remove many delegates, let's see what breaks
Patch Set: fix test 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/non_persistent_notification_handler.h" 5 #include "chrome/browser/notifications/non_persistent_notification_handler.h"
6 6
7 #include "base/strings/nullable_string16.h" 7 #include "base/strings/nullable_string16.h"
8 #include "chrome/browser/notifications/platform_notification_service_impl.h" 8 #include "chrome/browser/notifications/platform_notification_service_impl.h"
9 #include "content/public/browser/notification_event_dispatcher.h" 9 #include "content/public/browser/notification_event_dispatcher.h"
10 10
(...skipping 28 matching lines...) Expand all
39 // https://notifications.spec.whatwg.org/#create-a-notification 39 // https://notifications.spec.whatwg.org/#create-a-notification
40 DCHECK_EQ(-1, action_index); 40 DCHECK_EQ(-1, action_index);
41 41
42 content::NotificationEventDispatcher::GetInstance() 42 content::NotificationEventDispatcher::GetInstance()
43 ->DispatchNonPersistentClickEvent(notification_id); 43 ->DispatchNonPersistentClickEvent(notification_id);
44 } 44 }
45 45
46 void NonPersistentNotificationHandler::OpenSettings(Profile* profile) { 46 void NonPersistentNotificationHandler::OpenSettings(Profile* profile) {
47 NotificationCommon::OpenNotificationSettings(profile); 47 NotificationCommon::OpenNotificationSettings(profile);
48 } 48 }
49
50 bool NonPersistentNotificationHandler::ShouldDisplayOnFullScreen(
51 Profile* profile,
52 const std::string& origin) const {
53 return NotificationCommon::ActiveTabIsFullScreen(profile, GURL(origin));
54 }
OLDNEW
« no previous file with comments | « chrome/browser/notifications/non_persistent_notification_handler.h ('k') | chrome/browser/notifications/notification_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698