Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 128 #include "chrome/browser/ui/webui/uber/uber_ui.h" | 128 #include "chrome/browser/ui/webui/uber/uber_ui.h" |
| 129 #endif | 129 #endif |
| 130 | 130 |
| 131 #if defined(OS_CHROMEOS) | 131 #if defined(OS_CHROMEOS) |
| 132 #include "base/sys_info.h" | 132 #include "base/sys_info.h" |
| 133 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" | 133 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" |
| 134 #include "chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.h" | 134 #include "chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.h" |
| 135 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" | 135 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" |
| 136 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" | 136 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" |
| 137 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" | 137 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" |
| 138 #include "chrome/browser/ui/webui/chromeos/emulator/device_emulator_ui.h" | |
| 138 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_ui.h" | 139 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_ui.h" |
| 139 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" | 140 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" |
| 140 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" | 141 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
| 141 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" | 142 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" |
| 142 #include "chrome/browser/ui/webui/chromeos/network_ui.h" | 143 #include "chrome/browser/ui/webui/chromeos/network_ui.h" |
| 143 #include "chrome/browser/ui/webui/chromeos/power_ui.h" | 144 #include "chrome/browser/ui/webui/chromeos/power_ui.h" |
| 144 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" | 145 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" |
| 145 #include "chrome/browser/ui/webui/chromeos/set_time_ui.h" | 146 #include "chrome/browser/ui/webui/chromeos/set_time_ui.h" |
| 146 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" | 147 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" |
| 147 #include "chrome/browser/ui/webui/chromeos/slow_trace_ui.h" | 148 #include "chrome/browser/ui/webui/chromeos/slow_trace_ui.h" |
| 148 #include "chrome/browser/ui/webui/chromeos/slow_ui.h" | 149 #include "chrome/browser/ui/webui/chromeos/slow_ui.h" |
| 149 #include "chrome/browser/ui/webui/voice_search_ui.h" | 150 #include "chrome/browser/ui/webui/voice_search_ui.h" |
| 150 #include "components/proximity_auth/webui/proximity_auth_ui.h" | 151 #include "components/proximity_auth/webui/proximity_auth_ui.h" |
| 151 #include "components/proximity_auth/webui/url_constants.h" | 152 #include "components/proximity_auth/webui/url_constants.h" |
| 152 #endif | 153 #endif |
| 153 | 154 |
| 154 #if defined(OS_CHROMEOS) && !defined(NDEBUG) | |
| 155 #include "chrome/browser/ui/webui/chromeos/emulator/device_emulator_ui.h" | |
| 156 #endif | |
| 157 | |
| 158 #if !defined(OS_CHROMEOS) | 155 #if !defined(OS_CHROMEOS) |
| 159 #include "chrome/browser/ui/webui/app_launcher_page_ui.h" | 156 #include "chrome/browser/ui/webui/app_launcher_page_ui.h" |
| 160 #endif | 157 #endif |
| 161 | 158 |
| 162 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) | 159 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) |
| 163 #include "chrome/browser/ui/sync/sync_promo_ui.h" | 160 #include "chrome/browser/ui/sync/sync_promo_ui.h" |
| 164 #include "chrome/browser/ui/webui/signin/inline_login_ui.h" | 161 #include "chrome/browser/ui/webui/signin/inline_login_ui.h" |
| 165 #include "chrome/browser/ui/webui/signin/signin_error_ui.h" | 162 #include "chrome/browser/ui/webui/signin/signin_error_ui.h" |
| 166 #include "chrome/browser/ui/webui/signin/sync_confirmation_ui.h" | 163 #include "chrome/browser/ui/webui/signin/sync_confirmation_ui.h" |
| 167 #include "chrome/browser/ui/webui/signin/user_manager_ui.h" | 164 #include "chrome/browser/ui/webui/signin/user_manager_ui.h" |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 510 if (url.host() == chrome::kChromeUISetTimeHost) | 507 if (url.host() == chrome::kChromeUISetTimeHost) |
| 511 return &NewWebUI<chromeos::SetTimeUI>; | 508 return &NewWebUI<chromeos::SetTimeUI>; |
| 512 if (url.host() == chrome::kChromeUISimUnlockHost) | 509 if (url.host() == chrome::kChromeUISimUnlockHost) |
| 513 return &NewWebUI<chromeos::SimUnlockUI>; | 510 return &NewWebUI<chromeos::SimUnlockUI>; |
| 514 if (url.host() == chrome::kChromeUISlowHost) | 511 if (url.host() == chrome::kChromeUISlowHost) |
| 515 return &NewWebUI<chromeos::SlowUI>; | 512 return &NewWebUI<chromeos::SlowUI>; |
| 516 if (url.host() == chrome::kChromeUISlowTraceHost) | 513 if (url.host() == chrome::kChromeUISlowTraceHost) |
| 517 return &NewWebUI<chromeos::SlowTraceController>; | 514 return &NewWebUI<chromeos::SlowTraceController>; |
| 518 if (url.host() == chrome::kChromeUIVoiceSearchHost) | 515 if (url.host() == chrome::kChromeUIVoiceSearchHost) |
| 519 return &NewWebUI<VoiceSearchUI>; | 516 return &NewWebUI<VoiceSearchUI>; |
| 520 #if !defined(NDEBUG) | |
| 521 if (!base::SysInfo::IsRunningOnChromeOS()) { | 517 if (!base::SysInfo::IsRunningOnChromeOS()) { |
| 522 if (url.host() == chrome::kChromeUIDeviceEmulatorHost) | 518 if (url.host() == chrome::kChromeUIDeviceEmulatorHost) |
| 523 return &NewWebUI<DeviceEmulatorUI>; | 519 return &NewWebUI<DeviceEmulatorUI>; |
|
michaelpg
2016/10/22 23:28:29
IIUC, removing the !NDEBUG preprocessor checks wil
stevenjb
2016/10/24 17:18:55
+1, I think this code and the include need to be w
scheib
2016/11/03 23:58:59
Done.
| |
| 524 } | 520 } |
| 525 #endif // !defined(NDEBUG) | |
| 526 #endif // defined(OS_CHROMEOS) | 521 #endif // defined(OS_CHROMEOS) |
| 527 #if defined(OS_ANDROID) | 522 #if defined(OS_ANDROID) |
| 528 if (url.host() == chrome::kChromeUIOfflineInternalsHost) | 523 if (url.host() == chrome::kChromeUIOfflineInternalsHost) |
| 529 return &NewWebUI<OfflineInternalsUI>; | 524 return &NewWebUI<OfflineInternalsUI>; |
| 530 if (url.host() == chrome::kChromeUIPopularSitesInternalsHost) | 525 if (url.host() == chrome::kChromeUIPopularSitesInternalsHost) |
| 531 return &NewWebUI<PopularSitesInternalsUI>; | 526 return &NewWebUI<PopularSitesInternalsUI>; |
| 532 if (url.host() == chrome::kChromeUISnippetsInternalsHost && | 527 if (url.host() == chrome::kChromeUISnippetsInternalsHost && |
| 533 !profile->IsOffTheRecord()) | 528 !profile->IsOffTheRecord()) |
| 534 return &NewWebUI<SnippetsInternalsUI>; | 529 return &NewWebUI<SnippetsInternalsUI>; |
| 535 #if defined(ENABLE_VR_SHELL) || defined(ENABLE_WEBVR) | 530 #if defined(ENABLE_VR_SHELL) || defined(ENABLE_WEBVR) |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 836 #endif | 831 #endif |
| 837 | 832 |
| 838 // Android doesn't use the plugins pages. | 833 // Android doesn't use the plugins pages. |
| 839 if (page_url.host() == chrome::kChromeUIPluginsHost) | 834 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 840 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 835 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
| 841 | 836 |
| 842 #endif | 837 #endif |
| 843 | 838 |
| 844 return NULL; | 839 return NULL; |
| 845 } | 840 } |
| OLD | NEW |