diff options
-rw-r--r-- | chrome/browser/local_discovery/privet_notifications.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/local_discovery/privet_notifications.cc b/chrome/browser/local_discovery/privet_notifications.cc index a0554a4..dd1999e 100644 --- a/chrome/browser/local_discovery/privet_notifications.cc +++ b/chrome/browser/local_discovery/privet_notifications.cc @@ -33,6 +33,7 @@ #include "grit/theme_resources.h" #include "ui/base/l10n/l10n_util.h" #include "ui/base/resource/resource_bundle.h" +#include "ui/message_center/message_center_util.h" #include "ui/message_center/notifier_settings.h" namespace local_discovery { @@ -217,7 +218,9 @@ void PrivetNotificationService::DeviceCacheFlushed() { bool PrivetNotificationService::IsEnabled() { CommandLine* command_line = CommandLine::ForCurrentProcess(); return !command_line->HasSwitch(switches::kDisableDeviceDiscovery) && - !command_line->HasSwitch(switches::kDisableDeviceDiscoveryNotifications); + !command_line->HasSwitch( + switches::kDisableDeviceDiscoveryNotifications) && + message_center::IsRichNotificationEnabled(); } // static |