| 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 "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "chrome/browser/about_flags.h" | 8 #include "chrome/browser/about_flags.h" |
| 9 #include "chrome/browser/extensions/extension_service.h" | 9 #include "chrome/browser/extensions/extension_service.h" |
| 10 #include "chrome/browser/extensions/extension_web_ui.h" | 10 #include "chrome/browser/extensions/extension_web_ui.h" |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 return &NewWebUI<MobileSetupUI>; | 286 return &NewWebUI<MobileSetupUI>; |
| 287 if (url.host() == chrome::kChromeUIOobeHost) | 287 if (url.host() == chrome::kChromeUIOobeHost) |
| 288 return &NewWebUI<chromeos::OobeUI>; | 288 return &NewWebUI<chromeos::OobeUI>; |
| 289 if (url.host() == chrome::kChromeUIProxySettingsHost) | 289 if (url.host() == chrome::kChromeUIProxySettingsHost) |
| 290 return &NewWebUI<chromeos::ProxySettingsUI>; | 290 return &NewWebUI<chromeos::ProxySettingsUI>; |
| 291 if (url.host() == chrome::kChromeUIRegisterPageHost) | 291 if (url.host() == chrome::kChromeUIRegisterPageHost) |
| 292 return &NewWebUI<RegisterPageUI>; | 292 return &NewWebUI<RegisterPageUI>; |
| 293 if (url.host() == chrome::kChromeUISimUnlockHost) | 293 if (url.host() == chrome::kChromeUISimUnlockHost) |
| 294 return &NewWebUI<chromeos::SimUnlockUI>; | 294 return &NewWebUI<chromeos::SimUnlockUI>; |
| 295 if (url.host() == chrome::kChromeUISystemInfoHost) | 295 if (url.host() == chrome::kChromeUISystemInfoHost) |
| 296 return &NewWebUI<SystemInfoUI>; | 296 return &NewWebUI<chromeos::SystemInfoUI>; |
| 297 #endif // defined(OS_CHROMEOS) | 297 #endif // defined(OS_CHROMEOS) |
| 298 | 298 |
| 299 /**************************************************************************** | 299 /**************************************************************************** |
| 300 * Other #defines and special logics. | 300 * Other #defines and special logics. |
| 301 ***************************************************************************/ | 301 ***************************************************************************/ |
| 302 #if defined(ENABLE_CONFIGURATION_POLICY) | 302 #if defined(ENABLE_CONFIGURATION_POLICY) |
| 303 if (url.host() == chrome::kChromeUIPolicyHost) | 303 if (url.host() == chrome::kChromeUIPolicyHost) |
| 304 return &NewWebUI<PolicyUI>; | 304 return &NewWebUI<PolicyUI>; |
| 305 #endif | 305 #endif |
| 306 #if defined(USE_AURA) | 306 #if defined(USE_AURA) |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 if (page_url.host() == chrome::kChromeUISettingsFrameHost) | 527 if (page_url.host() == chrome::kChromeUISettingsFrameHost) |
| 528 return options2::OptionsUI::GetFaviconResourceBytes(); | 528 return options2::OptionsUI::GetFaviconResourceBytes(); |
| 529 | 529 |
| 530 // Android doesn't use the plugins pages. | 530 // Android doesn't use the plugins pages. |
| 531 if (page_url.host() == chrome::kChromeUIPluginsHost) | 531 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 532 return PluginsUI::GetFaviconResourceBytes(); | 532 return PluginsUI::GetFaviconResourceBytes(); |
| 533 #endif | 533 #endif |
| 534 | 534 |
| 535 return NULL; | 535 return NULL; |
| 536 } | 536 } |
| OLD | NEW |