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

Unified Diff: chrome/browser/local_discovery/privet_notifications.h

Issue 195983023: Enable devices page UI on MacOSX (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_dcheck
Patch Set: Created 6 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
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 {

Powered by Google App Engine
This is Rietveld 408576698