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/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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 if (SyncPromoUI::ShouldShowSyncPromo(profile)) | 303 if (SyncPromoUI::ShouldShowSyncPromo(profile)) |
304 return &NewWebUI<SyncPromoUI>; | 304 return &NewWebUI<SyncPromoUI>; |
305 else | 305 else |
306 return &NewWebUI<NewTabUI>; | 306 return &NewWebUI<NewTabUI>; |
307 } | 307 } |
308 #endif | 308 #endif |
309 | 309 |
310 if (url.host() == chrome::kChromeUIChromeURLsHost || | 310 if (url.host() == chrome::kChromeUIChromeURLsHost || |
311 url.host() == chrome::kChromeUICreditsHost || | 311 url.host() == chrome::kChromeUICreditsHost || |
312 url.host() == chrome::kChromeUIDNSHost || | 312 url.host() == chrome::kChromeUIDNSHost || |
313 url.host() == chrome::kChromeUIHistogramsHost || | |
314 url.host() == chrome::kChromeUIMemoryHost || | 313 url.host() == chrome::kChromeUIMemoryHost || |
315 url.host() == chrome::kChromeUIMemoryRedirectHost || | 314 url.host() == chrome::kChromeUIMemoryRedirectHost || |
316 url.host() == chrome::kChromeUIStatsHost || | 315 url.host() == chrome::kChromeUIStatsHost || |
317 url.host() == chrome::kChromeUITermsHost || | 316 url.host() == chrome::kChromeUITermsHost || |
318 url.host() == chrome::kChromeUIVersionHost | 317 url.host() == chrome::kChromeUIVersionHost |
319 #if defined(OS_LINUX) || defined(OS_OPENBSD) | 318 #if defined(OS_LINUX) || defined(OS_OPENBSD) |
320 || url.host() == chrome::kChromeUILinuxProxyConfigHost | 319 || url.host() == chrome::kChromeUILinuxProxyConfigHost |
321 || url.host() == chrome::kChromeUISandboxHost | 320 || url.host() == chrome::kChromeUISandboxHost |
322 #endif | 321 #endif |
323 #if defined(OS_CHROMEOS) | 322 #if defined(OS_CHROMEOS) |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 if (page_url.host() == chrome::kChromeUISettingsFrameHost) | 500 if (page_url.host() == chrome::kChromeUISettingsFrameHost) |
502 return options2::OptionsUI::GetFaviconResourceBytes(); | 501 return options2::OptionsUI::GetFaviconResourceBytes(); |
503 | 502 |
504 // Android doesn't use the plugins pages. | 503 // Android doesn't use the plugins pages. |
505 if (page_url.host() == chrome::kChromeUIPluginsHost) | 504 if (page_url.host() == chrome::kChromeUIPluginsHost) |
506 return PluginsUI::GetFaviconResourceBytes(); | 505 return PluginsUI::GetFaviconResourceBytes(); |
507 #endif | 506 #endif |
508 | 507 |
509 return NULL; | 508 return NULL; |
510 } | 509 } |
OLD | NEW |