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

Unified Diff: chrome/browser/ui/webui/uber/uber_ui.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/ui/webui/uber/uber_ui.cc
diff --git a/chrome/browser/ui/webui/uber/uber_ui.cc b/chrome/browser/ui/webui/uber/uber_ui.cc
index f291bb97cc20796729ff0a6845a9aa7078dca7fe..9b7ff740509082fec343ae9335ed6a83b84c447e 100644
--- a/chrome/browser/ui/webui/uber/uber_ui.cc
+++ b/chrome/browser/ui/webui/uber/uber_ui.cc
@@ -133,8 +133,8 @@ content::WebUIDataSource* CreateUberFrameHTMLSource(Profile* profile) {
bool devicesHidden = true;
#if defined(ENABLE_MDNS)
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableDeviceDiscovery)) {
+ if (!CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableDeviceDiscovery)) {
devicesHidden = false;
}
#endif
@@ -156,8 +156,8 @@ UberUI::UberUI(content::WebUI* web_ui) : WebUIController(web_ui) {
RegisterSubpage(chrome::kChromeUIUberFrameURL);
#if defined(ENABLE_MDNS)
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableDeviceDiscovery)) {
+ if (!CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableDeviceDiscovery)) {
RegisterSubpage(chrome::kChromeUIDevicesFrameURL);
}
#endif
« no previous file with comments | « chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698