| 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 305b37dfde982c86aba94977cb22cd25d76e263c..aa57b4f84ec11ca430818d5b8a8e2c542c30b0d7 100644
|
| --- a/chrome/browser/local_discovery/privet_notifications_factory.cc
|
| +++ b/chrome/browser/local_discovery/privet_notifications_factory.cc
|
| @@ -35,10 +35,9 @@ PrivetNotificationServiceFactory::BuildServiceInstanceFor(
|
|
|
| bool
|
| PrivetNotificationServiceFactory::ServiceIsCreatedWithBrowserContext() const {
|
| - // TODO(vitalybuka): re-enable after fixing broken tests.
|
| - return false;
|
| - return !CommandLine::ForCurrentProcess()->HasSwitch(
|
| - switches::kDisableDeviceDiscovery);
|
| + CommandLine* command_line = CommandLine::ForCurrentProcess();
|
| + return !command_line->HasSwitch(switches::kDisableDeviceDiscovery) &&
|
| + !command_line->HasSwitch(switches::kDisableDeviceDiscoveryNotifications);
|
| }
|
|
|
| bool PrivetNotificationServiceFactory::ServiceIsNULLWhileTesting() const {
|
|
|