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

Unified Diff: chrome/browser/local_discovery/privet_notifications_factory.cc

Issue 23903024: Enable device discovery notifications. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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_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 {

Powered by Google App Engine
This is Rietveld 408576698