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 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 return &NewWebUI<PolicyUI>; | 537 return &NewWebUI<PolicyUI>; |
| 538 if (url.host() == chrome::kChromeUIMdPolicyHost) |
| 539 return &NewWebUI<PolicyMaterialDesignUI>; |
538 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) | 540 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) |
539 if (url.host() == chrome::kChromeUIProfileSigninConfirmationHost) | 541 if (url.host() == chrome::kChromeUIProfileSigninConfirmationHost) |
540 return &NewWebUI<ProfileSigninConfirmationUI>; | 542 return &NewWebUI<ProfileSigninConfirmationUI>; |
541 #endif | 543 #endif |
542 #endif // defined(ENABLE_CONFIGURATION_POLICY) | 544 #endif // defined(ENABLE_CONFIGURATION_POLICY) |
543 | 545 |
544 #if defined(ENABLE_APP_LIST) | 546 #if defined(ENABLE_APP_LIST) |
545 if (url.host() == chrome::kChromeUIAppListStartPageHost) | 547 if (url.host() == chrome::kChromeUIAppListStartPageHost) |
546 return &NewWebUI<app_list::StartPageUI>; | 548 return &NewWebUI<app_list::StartPageUI>; |
547 #endif | 549 #endif |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
775 #endif | 777 #endif |
776 | 778 |
777 // Android doesn't use the plugins pages. | 779 // Android doesn't use the plugins pages. |
778 if (page_url.host() == chrome::kChromeUIPluginsHost) | 780 if (page_url.host() == chrome::kChromeUIPluginsHost) |
779 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 781 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
780 | 782 |
781 #endif | 783 #endif |
782 | 784 |
783 return NULL; | 785 return NULL; |
784 } | 786 } |
OLD | NEW |