summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/about_flags.cc7
-rw-r--r--chrome/browser/local_discovery/privet_notifications.cc4
-rw-r--r--chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc4
-rw-r--r--chrome/browser/ui/webui/options/browser_options_handler.cc3
-rw-r--r--chrome/browser/ui/webui/print_preview/print_preview_handler.cc3
5 files changed, 5 insertions, 16 deletions
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 5b96d2d..f14ff07 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -1358,13 +1358,6 @@ const Experiment kExperiments[] = {
},
#if defined(ENABLE_SERVICE_DISCOVERY)
{
- "disable-device-discovery",
- IDS_FLAGS_DISABLE_DEVICE_DISCOVERY_NAME,
- IDS_FLAGS_DISABLE_DEVICE_DISCOVERY_DESCRIPTION,
- kOsDesktop,
- SINGLE_VALUE_TYPE(switches::kDisableDeviceDiscovery)
- },
- {
"device-discovery-notifications",
IDS_FLAGS_DEVICE_DISCOVERY_NOTIFICATIONS_NAME,
IDS_FLAGS_DEVICE_DISCOVERY_NOTIFICATIONS_DESCRIPTION,
diff --git a/chrome/browser/local_discovery/privet_notifications.cc b/chrome/browser/local_discovery/privet_notifications.cc
index 5a009cc..705ccde 100644
--- a/chrome/browser/local_discovery/privet_notifications.cc
+++ b/chrome/browser/local_discovery/privet_notifications.cc
@@ -225,8 +225,8 @@ void PrivetNotificationService::DeviceCacheFlushed() {
// static
bool PrivetNotificationService::IsEnabled() {
CommandLine* command_line = CommandLine::ForCurrentProcess();
- return !command_line->HasSwitch(switches::kDisableDeviceDiscovery) &&
- !command_line->HasSwitch(switches::kDisableDeviceDiscoveryNotifications);
+ return !command_line->HasSwitch(
+ switches::kDisableDeviceDiscoveryNotifications);
}
// static
diff --git a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
index b05d5fd..2c8ec46 100644
--- a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
+++ b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
@@ -277,9 +277,7 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui,
if (url.host() == chrome::kChromeUICrashesHost)
return &NewWebUI<CrashesUI>;
#if defined(ENABLE_SERVICE_DISCOVERY)
- if (url.host() == chrome::kChromeUIDevicesHost &&
- !CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableDeviceDiscovery)) {
+ if (url.host() == chrome::kChromeUIDevicesHost) {
return &NewWebUI<LocalDiscoveryUI>;
}
#endif
diff --git a/chrome/browser/ui/webui/options/browser_options_handler.cc b/chrome/browser/ui/webui/options/browser_options_handler.cc
index 5f6285b..0b29dc1 100644
--- a/chrome/browser/ui/webui/options/browser_options_handler.cc
+++ b/chrome/browser/ui/webui/options/browser_options_handler.cc
@@ -173,8 +173,7 @@ BrowserOptionsHandler::BrowserOptionsHandler()
#endif
#if defined(ENABLE_SERVICE_DISCOVERY)
- cloud_print_mdns_ui_enabled_ = !CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableDeviceDiscovery);
+ cloud_print_mdns_ui_enabled_ = true;
#endif // defined(ENABLE_SERVICE_DISCOVERY)
}
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
index 6b4961b..558af3b 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
+++ b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
@@ -606,8 +606,7 @@ void PrintPreviewHandler::RegisterMessages() {
bool PrintPreviewHandler::PrivetPrintingEnabled() {
#if defined(ENABLE_SERVICE_DISCOVERY)
- return !base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableDeviceDiscovery);
+ return true;
#else
return false;
#endif