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..164189c28357cfbeda76d0e05ad93e0fba978e6e 100644 |
--- a/chrome/browser/local_discovery/privet_notifications_factory.cc |
+++ b/chrome/browser/local_discovery/privet_notifications_factory.cc |
@@ -35,8 +35,8 @@ PrivetNotificationServiceFactory::BuildServiceInstanceFor( |
bool |
PrivetNotificationServiceFactory::ServiceIsCreatedWithBrowserContext() const { |
- return CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kEnableDeviceDiscovery); |
+ return !CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kDisableDeviceDiscovery); |
} |
} // namespace local_discovery |