| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 return &NewWebUI<RegisterPageUI>; | 234 return &NewWebUI<RegisterPageUI>; |
| 235 if (url.host() == chrome::kChromeUISimUnlockHost) | 235 if (url.host() == chrome::kChromeUISimUnlockHost) |
| 236 return &NewWebUI<chromeos::SimUnlockUI>; | 236 return &NewWebUI<chromeos::SimUnlockUI>; |
| 237 if (url.host() == chrome::kChromeUISystemInfoHost) | 237 if (url.host() == chrome::kChromeUISystemInfoHost) |
| 238 return &NewWebUI<SystemInfoUI>; | 238 return &NewWebUI<SystemInfoUI>; |
| 239 #endif // defined(OS_CHROMEOS) | 239 #endif // defined(OS_CHROMEOS) |
| 240 | 240 |
| 241 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) | 241 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) |
| 242 if (url.host() == chrome::kChromeUICollectedCookiesHost || | 242 if (url.host() == chrome::kChromeUICollectedCookiesHost || |
| 243 url.host() == chrome::kChromeUIHttpAuthHost || | 243 url.host() == chrome::kChromeUIHttpAuthHost || |
| 244 url.host() == chrome::kChromeUIRepostFormWarningHost) { | 244 url.host() == chrome::kChromeUITabModalDialogHost) { |
| 245 return &NewWebUI<ConstrainedHtmlUI>; | 245 return &NewWebUI<ConstrainedHtmlUI>; |
| 246 } | 246 } |
| 247 #endif | 247 #endif |
| 248 | 248 |
| 249 #if defined(USE_AURA) | 249 #if defined(USE_AURA) |
| 250 if (url.host() == chrome::kChromeUIAppListHost) | 250 if (url.host() == chrome::kChromeUIAppListHost) |
| 251 return &NewWebUI<AppListUI>; | 251 return &NewWebUI<AppListUI>; |
| 252 #endif | 252 #endif |
| 253 | 253 |
| 254 if (url.host() == chrome::kChromeUIPrintHost && | 254 if (url.host() == chrome::kChromeUIPrintHost && |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 return FlashUI::GetFaviconResourceBytes(); | 436 return FlashUI::GetFaviconResourceBytes(); |
| 437 | 437 |
| 438 if (page_url.host() == chrome::kChromeUISettingsHost) | 438 if (page_url.host() == chrome::kChromeUISettingsHost) |
| 439 return OptionsUI::GetFaviconResourceBytes(); | 439 return OptionsUI::GetFaviconResourceBytes(); |
| 440 | 440 |
| 441 if (page_url.host() == chrome::kChromeUIPluginsHost) | 441 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 442 return PluginsUI::GetFaviconResourceBytes(); | 442 return PluginsUI::GetFaviconResourceBytes(); |
| 443 | 443 |
| 444 return NULL; | 444 return NULL; |
| 445 } | 445 } |
| OLD | NEW |