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_factory.h" | 5 #include "chrome/browser/ui/webui/chrome_web_ui_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/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/extensions/extension_service.h" | 10 #include "chrome/browser/extensions/extension_service.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 #include "googleurl/src/gurl.h" | 57 #include "googleurl/src/gurl.h" |
58 | 58 |
59 #if defined(OS_CHROMEOS) | 59 #if defined(OS_CHROMEOS) |
60 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" | 60 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" |
61 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" | 61 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" |
62 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" | 62 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" |
63 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" | 63 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
64 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" | 64 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" |
65 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" | 65 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" |
66 #include "chrome/browser/ui/webui/chromeos/register_page_ui.h" | 66 #include "chrome/browser/ui/webui/chromeos/register_page_ui.h" |
| 67 #include "chrome/browser/ui/webui/chromeos/retail_mode_logout_dialog.h" |
67 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" | 68 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" |
68 #include "chrome/browser/ui/webui/chromeos/system_info_ui.h" | 69 #include "chrome/browser/ui/webui/chromeos/system_info_ui.h" |
69 #include "chrome/browser/ui/webui/active_downloads_ui.h" | 70 #include "chrome/browser/ui/webui/active_downloads_ui.h" |
70 #else | 71 #else |
71 #include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h" | 72 #include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h" |
72 #endif | 73 #endif |
73 | 74 |
74 #if defined(USE_VIRTUAL_KEYBOARD) | 75 #if defined(USE_VIRTUAL_KEYBOARD) |
75 #include "chrome/browser/ui/webui/keyboard_ui.h" | 76 #include "chrome/browser/ui/webui/keyboard_ui.h" |
76 #endif | 77 #endif |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) | 258 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) |
258 return &NewWebUI<KeyboardOverlayUI>; | 259 return &NewWebUI<KeyboardOverlayUI>; |
259 if (url.host() == chrome::kChromeUIMobileSetupHost) | 260 if (url.host() == chrome::kChromeUIMobileSetupHost) |
260 return &NewWebUI<MobileSetupUI>; | 261 return &NewWebUI<MobileSetupUI>; |
261 if (url.host() == chrome::kChromeUIOobeHost) | 262 if (url.host() == chrome::kChromeUIOobeHost) |
262 return &NewWebUI<chromeos::OobeUI>; | 263 return &NewWebUI<chromeos::OobeUI>; |
263 if (url.host() == chrome::kChromeUIProxySettingsHost) | 264 if (url.host() == chrome::kChromeUIProxySettingsHost) |
264 return &NewWebUI<chromeos::ProxySettingsUI>; | 265 return &NewWebUI<chromeos::ProxySettingsUI>; |
265 if (url.host() == chrome::kChromeUIRegisterPageHost) | 266 if (url.host() == chrome::kChromeUIRegisterPageHost) |
266 return &NewWebUI<RegisterPageUI>; | 267 return &NewWebUI<RegisterPageUI>; |
| 268 if (url.host() == chrome::kChromeUIRetailModeLogoutDialogHost) |
| 269 return &NewWebUI<RetailModeLogoutDialogUI>; |
267 if (url.host() == chrome::kChromeUISimUnlockHost) | 270 if (url.host() == chrome::kChromeUISimUnlockHost) |
268 return &NewWebUI<chromeos::SimUnlockUI>; | 271 return &NewWebUI<chromeos::SimUnlockUI>; |
269 if (url.host() == chrome::kChromeUISystemInfoHost) | 272 if (url.host() == chrome::kChromeUISystemInfoHost) |
270 return &NewWebUI<SystemInfoUI>; | 273 return &NewWebUI<SystemInfoUI>; |
271 if (url.host() == chrome::kChromeUIAboutPageFrameHost) | 274 if (url.host() == chrome::kChromeUIAboutPageFrameHost) |
272 return &NewWebUI<AboutPageUI>; | 275 return &NewWebUI<AboutPageUI>; |
273 #endif // defined(OS_CHROMEOS) | 276 #endif // defined(OS_CHROMEOS) |
274 | 277 |
275 /**************************************************************************** | 278 /**************************************************************************** |
276 * Other #defines and special logics. | 279 * Other #defines and special logics. |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 return OptionsUI::GetFaviconResourceBytes(); | 497 return OptionsUI::GetFaviconResourceBytes(); |
495 | 498 |
496 if (page_url.host() == chrome::kChromeUISettingsFrameHost) | 499 if (page_url.host() == chrome::kChromeUISettingsFrameHost) |
497 return options2::OptionsUI::GetFaviconResourceBytes(); | 500 return options2::OptionsUI::GetFaviconResourceBytes(); |
498 | 501 |
499 if (page_url.host() == chrome::kChromeUIPluginsHost) | 502 if (page_url.host() == chrome::kChromeUIPluginsHost) |
500 return PluginsUI::GetFaviconResourceBytes(); | 503 return PluginsUI::GetFaviconResourceBytes(); |
501 | 504 |
502 return NULL; | 505 return NULL; |
503 } | 506 } |
OLD | NEW |