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

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

Issue 23567023: Enable Device Discovery by default on Linux, ChromeOS and Windows. (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 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

Powered by Google App Engine
This is Rietveld 408576698