Index: chrome/browser/local_discovery/privet_notifications_factory.cc |
diff --git a/chrome/browser/local_discovery/privet_notifications_factory.cc b/chrome/browser/local_discovery/privet_notifications_factory.cc |
index 16f7ab6ea5eaaa015027e7491f0391eb74eed4b0..305b37dfde982c86aba94977cb22cd25d76e263c 100644 |
--- a/chrome/browser/local_discovery/privet_notifications_factory.cc |
+++ b/chrome/browser/local_discovery/privet_notifications_factory.cc |
@@ -35,8 +35,14 @@ PrivetNotificationServiceFactory::BuildServiceInstanceFor( |
bool |
PrivetNotificationServiceFactory::ServiceIsCreatedWithBrowserContext() const { |
- return CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kEnableDeviceDiscovery); |
+ // TODO(vitalybuka): re-enable after fixing broken tests. |
+ return false; |
+ return !CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kDisableDeviceDiscovery); |
+} |
+ |
+bool PrivetNotificationServiceFactory::ServiceIsNULLWhileTesting() const { |
+ return true; |
} |
} // namespace local_discovery |