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

Unified Diff: chrome/browser/notifications/arc_application_notifier_source_chromeos.cc

Issue 2102433002: Filter out ARC notifiers that are not shown in launcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/notifications/arc_application_notifier_source_chromeos.cc
diff --git a/chrome/browser/notifications/arc_application_notifier_source_chromeos.cc b/chrome/browser/notifications/arc_application_notifier_source_chromeos.cc
index 108a74cbf30dd5a7d23c7812afce7f7e3cfcd6a6..8ab57134142872d6a6348e091f0f33877ccc73ac 100644
--- a/chrome/browser/notifications/arc_application_notifier_source_chromeos.cc
+++ b/chrome/browser/notifications/arc_application_notifier_source_chromeos.cc
@@ -8,6 +8,7 @@
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/ui/app_list/arc/arc_app_utils.h"
#include "ui/base/layout.h"
#include "ui/display/display.h"
#include "ui/display/screen.h"
@@ -46,7 +47,7 @@ ArcApplicationNotifierSourceChromeOS::GetNotifierList(Profile* profile) {
for (const std::string& app_id : app_ids) {
const auto app = app_list->GetApp(app_id);
- if (!app)
+ if (!app || !arc::ShouldShowInLauncher(app_id))
dewittj 2016/06/27 16:17:49 Can an app that's not in the launcher show notific
uekawa- 2016/06/27 23:15:09 There are launchable activities and other activit
hirono 2016/06/28 02:20:31 I think there is two points here. First the notif
dewittj 2016/06/29 16:09:34 I am not sure if you are waiting for me or not. I
continue;
// Handle packages having multiple launcher activities.
if (package_to_app_ids_.count(app->package_name))

Powered by Google App Engine
This is Rietveld 408576698