| 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 return &NewWebUI<RegisterPageUI>; | 254 return &NewWebUI<RegisterPageUI>; |
| 255 if (url.host() == chrome::kChromeUISimUnlockHost) | 255 if (url.host() == chrome::kChromeUISimUnlockHost) |
| 256 return &NewWebUI<chromeos::SimUnlockUI>; | 256 return &NewWebUI<chromeos::SimUnlockUI>; |
| 257 if (url.host() == chrome::kChromeUISystemInfoHost) | 257 if (url.host() == chrome::kChromeUISystemInfoHost) |
| 258 return &NewWebUI<SystemInfoUI>; | 258 return &NewWebUI<SystemInfoUI>; |
| 259 #endif // defined(OS_CHROMEOS) | 259 #endif // defined(OS_CHROMEOS) |
| 260 | 260 |
| 261 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) | 261 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) |
| 262 if (url.host() == chrome::kChromeUICollectedCookiesHost || | 262 if (url.host() == chrome::kChromeUICollectedCookiesHost || |
| 263 url.host() == chrome::kChromeUIHttpAuthHost || | 263 url.host() == chrome::kChromeUIHttpAuthHost || |
| 264 url.host() == chrome::kChromeUIRepostFormWarningHost) { | 264 url.host() == chrome::kChromeUITabModalConfirmDialogHost) { |
| 265 return &NewWebUI<ConstrainedHtmlUI>; | 265 return &NewWebUI<ConstrainedHtmlUI>; |
| 266 } | 266 } |
| 267 #endif | 267 #endif |
| 268 | 268 |
| 269 #if defined(USE_AURA) | 269 #if defined(USE_AURA) |
| 270 if (url.host() == chrome::kChromeUIAppListHost) | 270 if (url.host() == chrome::kChromeUIAppListHost) |
| 271 return &NewWebUI<AppListUI>; | 271 return &NewWebUI<AppListUI>; |
| 272 #endif | 272 #endif |
| 273 | 273 |
| 274 if (url.host() == chrome::kChromeUIPrintHost && | 274 if (url.host() == chrome::kChromeUIPrintHost && |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 return OptionsUI::GetFaviconResourceBytes(); | 470 return OptionsUI::GetFaviconResourceBytes(); |
| 471 | 471 |
| 472 if (page_url.host() == chrome::kChromeUISettingsFrameHost) | 472 if (page_url.host() == chrome::kChromeUISettingsFrameHost) |
| 473 return Options2UI::GetFaviconResourceBytes(); | 473 return Options2UI::GetFaviconResourceBytes(); |
| 474 | 474 |
| 475 if (page_url.host() == chrome::kChromeUIPluginsHost) | 475 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 476 return PluginsUI::GetFaviconResourceBytes(); | 476 return PluginsUI::GetFaviconResourceBytes(); |
| 477 | 477 |
| 478 return NULL; | 478 return NULL; |
| 479 } | 479 } |
| OLD | NEW |