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

Unified Diff: chrome/browser/printing/cloud_print/privet_notifications.h

Issue 2446043002: Close privet printer notifications when clicked. (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/printing/cloud_print/privet_notifications.h
diff --git a/chrome/browser/printing/cloud_print/privet_notifications.h b/chrome/browser/printing/cloud_print/privet_notifications.h
index 2e9df8d1f2eeaff6ab489bf40aca09e57132407d..d603be755c101d0b69ba9ea940dc86266ad2ecb9 100644
--- a/chrome/browser/printing/cloud_print/privet_notifications.h
+++ b/chrome/browser/printing/cloud_print/privet_notifications.h
@@ -16,6 +16,7 @@
#include "components/prefs/pref_member.h"
class NotificationUIManager;
+class Profile;
namespace content {
class BrowserContext;
@@ -133,7 +134,7 @@ class PrivetNotificationService
class PrivetNotificationDelegate : public NotificationDelegate {
public:
- explicit PrivetNotificationDelegate(content::BrowserContext* profile);
+ explicit PrivetNotificationDelegate(Profile* profile);
// NotificationDelegate implementation.
std::string id() const override;
@@ -145,8 +146,9 @@ class PrivetNotificationDelegate : public NotificationDelegate {
void OpenTab(const GURL& url);
void DisableNotifications();
+ void CloseNotification();
- content::BrowserContext* const profile_;
+ Profile* const profile_;
};
} // namespace cloud_print

Powered by Google App Engine
This is Rietveld 408576698