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

Unified Diff: ui/arc/notification/arc_notification_manager.cc

Issue 2763913003: Hide the settings button on a notification in MNC. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « ui/arc/notification/arc_notification_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/arc/notification/arc_notification_manager.cc
diff --git a/ui/arc/notification/arc_notification_manager.cc b/ui/arc/notification/arc_notification_manager.cc
index b4619203a7c13360a170dc3f7952d950bf5b83ef..1ec3b8f8c0d783f4b8466ccc72a23c7109161dc2 100644
--- a/ui/arc/notification/arc_notification_manager.cc
+++ b/ui/arc/notification/arc_notification_manager.cc
@@ -240,6 +240,12 @@ void ArcNotificationManager::OpenNotificationSettings(const std::string& key) {
notifications_instance->OpenNotificationSettings(key);
}
+bool ArcNotificationManager::IsOpeningSettingsSupported() const {
+ const auto* notifications_instance = ARC_GET_INSTANCE_FOR_METHOD(
+ arc_bridge_service()->notifications(), OpenNotificationSettings);
+ return notifications_instance != nullptr;
+}
+
void ArcNotificationManager::OnToastPosted(mojom::ArcToastDataPtr data) {
const base::string16 text16(
base::UTF8ToUTF16(data->text.has_value() ? *data->text : std::string()));
« no previous file with comments | « ui/arc/notification/arc_notification_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698