Index: chrome/browser/local_discovery/privet_notifications.h |
diff --git a/chrome/browser/local_discovery/privet_notifications.h b/chrome/browser/local_discovery/privet_notifications.h |
index b457e7d95455e2da71ee560dbe90898228d1f5dd..94cfb696d66c261c900abd2d4b7e4cc09eed3691 100644 |
--- a/chrome/browser/local_discovery/privet_notifications.h |
+++ b/chrome/browser/local_discovery/privet_notifications.h |
@@ -26,9 +26,12 @@ class ServiceDiscoverySharedClient; |
class PrivetDeviceLister; |
class PrivetHTTPAsynchronousFactory; |
class PrivetHTTPResolution; |
-class PrivetTrafficDetector; |
struct DeviceDescription; |
+#if defined(ENABLE_MDNS) |
+class PrivetTrafficDetector; |
+#endif // ENABLE_MDNS |
+ |
// Contains logic related to notifications not tied actually displaying them. |
class PrivetNotificationsListener { |
public: |
@@ -116,9 +119,12 @@ class PrivetNotificationService |
content::BrowserContext* profile_; |
scoped_ptr<PrivetDeviceLister> device_lister_; |
scoped_refptr<ServiceDiscoverySharedClient> service_discovery_client_; |
- scoped_refptr<PrivetTrafficDetector> traffic_detector_; |
scoped_ptr<PrivetNotificationsListener> privet_notifications_listener_; |
BooleanPrefMember enable_privet_notification_member_; |
+ |
+#if defined(ENABLE_MDNS) |
+ scoped_refptr<PrivetTrafficDetector> traffic_detector_; |
+#endif // ENABLE_MDNS |
}; |
class PrivetNotificationDelegate : public NotificationDelegate { |