| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" | 138 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" |
| 139 #include "chrome/browser/ui/webui/chromeos/set_time_ui.h" | 139 #include "chrome/browser/ui/webui/chromeos/set_time_ui.h" |
| 140 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" | 140 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" |
| 141 #include "chrome/browser/ui/webui/chromeos/slow_trace_ui.h" | 141 #include "chrome/browser/ui/webui/chromeos/slow_trace_ui.h" |
| 142 #include "chrome/browser/ui/webui/chromeos/slow_ui.h" | 142 #include "chrome/browser/ui/webui/chromeos/slow_ui.h" |
| 143 #include "chrome/browser/ui/webui/voice_search_ui.h" | 143 #include "chrome/browser/ui/webui/voice_search_ui.h" |
| 144 #include "components/proximity_auth/webui/proximity_auth_ui.h" | 144 #include "components/proximity_auth/webui/proximity_auth_ui.h" |
| 145 #include "components/proximity_auth/webui/url_constants.h" | 145 #include "components/proximity_auth/webui/url_constants.h" |
| 146 #endif | 146 #endif |
| 147 | 147 |
| 148 #if !defined(OFFICIAL_BUILD) && defined(OS_CHROMEOS) && !defined(NDEBUG) | 148 #if defined(OS_CHROMEOS) && !defined(NDEBUG) |
| 149 #include "chrome/browser/ui/webui/chromeos/emulator/device_emulator_ui.h" | 149 #include "chrome/browser/ui/webui/chromeos/emulator/device_emulator_ui.h" |
| 150 #endif | 150 #endif |
| 151 | 151 |
| 152 #if !defined(OS_CHROMEOS) | 152 #if !defined(OS_CHROMEOS) |
| 153 #include "chrome/browser/ui/webui/app_launcher_page_ui.h" | 153 #include "chrome/browser/ui/webui/app_launcher_page_ui.h" |
| 154 #endif | 154 #endif |
| 155 | 155 |
| 156 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) | 156 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) |
| 157 #include "chrome/browser/ui/sync/sync_promo_ui.h" | 157 #include "chrome/browser/ui/sync/sync_promo_ui.h" |
| 158 #include "chrome/browser/ui/webui/signin/inline_login_ui.h" | 158 #include "chrome/browser/ui/webui/signin/inline_login_ui.h" |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 if (url.host() == chrome::kChromeUISetTimeHost) | 491 if (url.host() == chrome::kChromeUISetTimeHost) |
| 492 return &NewWebUI<chromeos::SetTimeUI>; | 492 return &NewWebUI<chromeos::SetTimeUI>; |
| 493 if (url.host() == chrome::kChromeUISimUnlockHost) | 493 if (url.host() == chrome::kChromeUISimUnlockHost) |
| 494 return &NewWebUI<chromeos::SimUnlockUI>; | 494 return &NewWebUI<chromeos::SimUnlockUI>; |
| 495 if (url.host() == chrome::kChromeUISlowHost) | 495 if (url.host() == chrome::kChromeUISlowHost) |
| 496 return &NewWebUI<chromeos::SlowUI>; | 496 return &NewWebUI<chromeos::SlowUI>; |
| 497 if (url.host() == chrome::kChromeUISlowTraceHost) | 497 if (url.host() == chrome::kChromeUISlowTraceHost) |
| 498 return &NewWebUI<chromeos::SlowTraceController>; | 498 return &NewWebUI<chromeos::SlowTraceController>; |
| 499 if (url.host() == chrome::kChromeUIVoiceSearchHost) | 499 if (url.host() == chrome::kChromeUIVoiceSearchHost) |
| 500 return &NewWebUI<VoiceSearchUI>; | 500 return &NewWebUI<VoiceSearchUI>; |
| 501 #if !defined(GOOGLE_CHROME_BUILD) && !defined(NDEBUG) | 501 #if !defined(NDEBUG) |
| 502 if (!base::SysInfo::IsRunningOnChromeOS()) { | 502 if (!base::SysInfo::IsRunningOnChromeOS()) { |
| 503 if (url.host() == chrome::kChromeUIDeviceEmulatorHost) | 503 if (url.host() == chrome::kChromeUIDeviceEmulatorHost) |
| 504 return &NewWebUI<DeviceEmulatorUI>; | 504 return &NewWebUI<DeviceEmulatorUI>; |
| 505 } | 505 } |
| 506 #endif // !defined(GOOGLE_CHROME_BUILD) && !defined(NDEBUG) | 506 #endif // !defined(NDEBUG) |
| 507 #endif // defined(OS_CHROMEOS) | 507 #endif // defined(OS_CHROMEOS) |
| 508 #if defined(OS_ANDROID) | 508 #if defined(OS_ANDROID) |
| 509 if (url.host() == chrome::kChromeUIOfflineInternalsHost) | 509 if (url.host() == chrome::kChromeUIOfflineInternalsHost) |
| 510 return &NewWebUI<OfflineInternalsUI>; | 510 return &NewWebUI<OfflineInternalsUI>; |
| 511 if (url.host() == chrome::kChromeUIPopularSitesInternalsHost) | 511 if (url.host() == chrome::kChromeUIPopularSitesInternalsHost) |
| 512 return &NewWebUI<PopularSitesInternalsUI>; | 512 return &NewWebUI<PopularSitesInternalsUI>; |
| 513 if (url.host() == chrome::kChromeUISnippetsInternalsHost && | 513 if (url.host() == chrome::kChromeUISnippetsInternalsHost && |
| 514 !profile->IsOffTheRecord()) | 514 !profile->IsOffTheRecord()) |
| 515 return &NewWebUI<SnippetsInternalsUI>; | 515 return &NewWebUI<SnippetsInternalsUI>; |
| 516 #else | 516 #else |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 809 #endif | 809 #endif |
| 810 | 810 |
| 811 // Android doesn't use the plugins pages. | 811 // Android doesn't use the plugins pages. |
| 812 if (page_url.host() == chrome::kChromeUIPluginsHost) | 812 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 813 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 813 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
| 814 | 814 |
| 815 #endif | 815 #endif |
| 816 | 816 |
| 817 return NULL; | 817 return NULL; |
| 818 } | 818 } |
| OLD | NEW |