| 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 <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 #if (defined(USE_NSS_CERTS) || defined(USE_OPENSSL_CERTS)) && defined(USE_AURA) | 526 #if (defined(USE_NSS_CERTS) || defined(USE_OPENSSL_CERTS)) && defined(USE_AURA) |
| 527 if (url.host() == chrome::kChromeUICertificateViewerHost) | 527 if (url.host() == chrome::kChromeUICertificateViewerHost) |
| 528 return &NewWebUI<CertificateViewerUI>; | 528 return &NewWebUI<CertificateViewerUI>; |
| 529 #if defined(OS_CHROMEOS) | 529 #if defined(OS_CHROMEOS) |
| 530 if (url.host() == chrome::kChromeUICertificateViewerDialogHost) | 530 if (url.host() == chrome::kChromeUICertificateViewerDialogHost) |
| 531 return &NewWebUI<CertificateViewerModalDialogUI>; | 531 return &NewWebUI<CertificateViewerModalDialogUI>; |
| 532 #endif | 532 #endif |
| 533 #endif // (USE_NSS_CERTS || USE_OPENSSL_CERTS) && USE_AURA | 533 #endif // (USE_NSS_CERTS || USE_OPENSSL_CERTS) && USE_AURA |
| 534 | 534 |
| 535 #if defined(ENABLE_CONFIGURATION_POLICY) | 535 #if defined(ENABLE_CONFIGURATION_POLICY) |
| 536 if (url.host() == chrome::kChromeUIPolicyHost) | 536 if (url.host() == chrome::kChromeUIPolicyHost || |
| 537 url.host() == chrome::kChromeUIPolicyInternalsHost) |
| 537 return &NewWebUI<PolicyUI>; | 538 return &NewWebUI<PolicyUI>; |
| 538 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) | 539 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) |
| 539 if (url.host() == chrome::kChromeUIProfileSigninConfirmationHost) | 540 if (url.host() == chrome::kChromeUIProfileSigninConfirmationHost) |
| 540 return &NewWebUI<ProfileSigninConfirmationUI>; | 541 return &NewWebUI<ProfileSigninConfirmationUI>; |
| 541 #endif | 542 #endif |
| 542 #endif // defined(ENABLE_CONFIGURATION_POLICY) | 543 #endif // defined(ENABLE_CONFIGURATION_POLICY) |
| 543 | 544 |
| 544 #if defined(ENABLE_APP_LIST) | 545 #if defined(ENABLE_APP_LIST) |
| 545 if (url.host() == chrome::kChromeUIAppListStartPageHost) | 546 if (url.host() == chrome::kChromeUIAppListStartPageHost) |
| 546 return &NewWebUI<app_list::StartPageUI>; | 547 return &NewWebUI<app_list::StartPageUI>; |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 #endif | 776 #endif |
| 776 | 777 |
| 777 // Android doesn't use the plugins pages. | 778 // Android doesn't use the plugins pages. |
| 778 if (page_url.host() == chrome::kChromeUIPluginsHost) | 779 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 779 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 780 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
| 780 | 781 |
| 781 #endif | 782 #endif |
| 782 | 783 |
| 783 return NULL; | 784 return NULL; |
| 784 } | 785 } |
| OLD | NEW |