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

Side by Side Diff: chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc

Issue 195983023: Enable devices page UI on MacOSX (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_dcheck
Patch Set: Created 6 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" 5 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/message_loop/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 137
138 #if defined(OS_WIN) 138 #if defined(OS_WIN)
139 #include "chrome/browser/ui/webui/conflicts_ui.h" 139 #include "chrome/browser/ui/webui/conflicts_ui.h"
140 #include "chrome/browser/ui/webui/set_as_default_browser_ui.h" 140 #include "chrome/browser/ui/webui/set_as_default_browser_ui.h"
141 #endif 141 #endif
142 142
143 #if (defined(USE_NSS) || defined(USE_OPENSSL)) && defined(USE_AURA) 143 #if (defined(USE_NSS) || defined(USE_OPENSSL)) && defined(USE_AURA)
144 #include "chrome/browser/ui/webui/certificate_viewer_ui.h" 144 #include "chrome/browser/ui/webui/certificate_viewer_ui.h"
145 #endif 145 #endif
146 146
147 #if defined(ENABLE_MDNS) 147 #if defined(ENABLE_SERVICE_DISCOVERY)
148 #include "chrome/browser/ui/webui/local_discovery/local_discovery_ui.h" 148 #include "chrome/browser/ui/webui/local_discovery/local_discovery_ui.h"
149 #endif 149 #endif
150 150
151 #if defined(ENABLE_APP_LIST) 151 #if defined(ENABLE_APP_LIST)
152 #include "chrome/browser/ui/webui/app_list/start_page_ui.h" 152 #include "chrome/browser/ui/webui/app_list/start_page_ui.h"
153 #endif 153 #endif
154 154
155 using content::WebUI; 155 using content::WebUI;
156 using content::WebUIController; 156 using content::WebUIController;
157 using ui::ExternalWebDialogUI; 157 using ui::ExternalWebDialogUI;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 if (url.host() == chrome::kChromeUICloudPrintResourcesHost) 245 if (url.host() == chrome::kChromeUICloudPrintResourcesHost)
246 return &NewWebUI<ExternalWebDialogUI>; 246 return &NewWebUI<ExternalWebDialogUI>;
247 if (url.host() == chrome::kChromeUICloudPrintSetupHost) 247 if (url.host() == chrome::kChromeUICloudPrintSetupHost)
248 return &NewWebUI<WebDialogUI>; 248 return &NewWebUI<WebDialogUI>;
249 if (url.host() == chrome::kChromeUIComponentsHost) 249 if (url.host() == chrome::kChromeUIComponentsHost)
250 return &NewWebUI<ComponentsUI>; 250 return &NewWebUI<ComponentsUI>;
251 if (url.spec() == chrome::kChromeUIConstrainedHTMLTestURL) 251 if (url.spec() == chrome::kChromeUIConstrainedHTMLTestURL)
252 return &NewWebUI<ConstrainedWebDialogUI>; 252 return &NewWebUI<ConstrainedWebDialogUI>;
253 if (url.host() == chrome::kChromeUICrashesHost) 253 if (url.host() == chrome::kChromeUICrashesHost)
254 return &NewWebUI<CrashesUI>; 254 return &NewWebUI<CrashesUI>;
255 #if defined(ENABLE_MDNS) 255 #if defined(ENABLE_SERVICE_DISCOVERY)
256 if (url.host() == chrome::kChromeUIDevicesHost && 256 if (url.host() == chrome::kChromeUIDevicesHost &&
257 !CommandLine::ForCurrentProcess()->HasSwitch( 257 !CommandLine::ForCurrentProcess()->HasSwitch(
258 switches::kDisableDeviceDiscovery)) { 258 switches::kDisableDeviceDiscovery)) {
259 return &NewWebUI<LocalDiscoveryUI>; 259 return &NewWebUI<LocalDiscoveryUI>;
260 } 260 }
261 #endif 261 #endif
262 if (url.host() == chrome::kChromeUIFlagsHost) 262 if (url.host() == chrome::kChromeUIFlagsHost)
263 return &NewWebUI<FlagsUI>; 263 return &NewWebUI<FlagsUI>;
264 if (url.host() == chrome::kChromeUIHistoryFrameHost) 264 if (url.host() == chrome::kChromeUIHistoryFrameHost)
265 return &NewWebUI<HistoryUI>; 265 return &NewWebUI<HistoryUI>;
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 #endif 673 #endif
674 674
675 // Android doesn't use the plugins pages. 675 // Android doesn't use the plugins pages.
676 if (page_url.host() == chrome::kChromeUIPluginsHost) 676 if (page_url.host() == chrome::kChromeUIPluginsHost)
677 return PluginsUI::GetFaviconResourceBytes(scale_factor); 677 return PluginsUI::GetFaviconResourceBytes(scale_factor);
678 678
679 #endif 679 #endif
680 680
681 return NULL; 681 return NULL;
682 } 682 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/toolbar/origin_chip_info.cc ('k') | chrome/browser/ui/webui/options/browser_options_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698