Commit cfc948b7 authored by Lily Houghton's avatar Lily Houghton Committed by Commit Bot

Change |#if defined| to |#if BUILDFLAG| in privet_notifications.cc

Per https://codereview.chromium.org/2460653003/ ENABLE_MDSN has been migrated
from a #define to a buildflag; however, there are two instances of it in
PrivetNotificationService that have not been changed yet.  This CL fixes those.

Bug: 863508
Change-Id: I273afb99ced733012ce58dcfa061d18faa8508de
Reviewed-on: https://chromium-review.googlesource.com/1136864Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
Commit-Queue: Lily Houghton <lilyhoughton@chromium.org>
Cr-Commit-Position: refs/heads/master@{#575060}
parent 81cdb3c0
...@@ -323,7 +323,7 @@ void PrivetNotificationService::Start() { ...@@ -323,7 +323,7 @@ void PrivetNotificationService::Start() {
} }
void PrivetNotificationService::OnNotificationsEnabledChanged() { void PrivetNotificationService::OnNotificationsEnabledChanged() {
#if defined(ENABLE_MDNS) #if BUILDFLAG(ENABLE_MDNS)
if (IsForced()) { if (IsForced()) {
StartLister(); StartLister();
} else if (*enable_privet_notification_member_) { } else if (*enable_privet_notification_member_) {
...@@ -352,7 +352,7 @@ void PrivetNotificationService::OnNotificationsEnabledChanged() { ...@@ -352,7 +352,7 @@ void PrivetNotificationService::OnNotificationsEnabledChanged() {
void PrivetNotificationService::StartLister() { void PrivetNotificationService::StartLister() {
ReportPrivetUmaEvent(PRIVET_LISTER_STARTED); ReportPrivetUmaEvent(PRIVET_LISTER_STARTED);
#if defined(ENABLE_MDNS) #if BUILDFLAG(ENABLE_MDNS)
traffic_detector_ = nullptr; traffic_detector_ = nullptr;
#endif // ENABLE_MDNS #endif // ENABLE_MDNS
service_discovery_client_ = service_discovery_client_ =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment