| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 #include "chrome/browser/ui/webui/net_internals/net_internals_ui.h" | 40 #include "chrome/browser/ui/webui/net_internals/net_internals_ui.h" |
| 41 #include "chrome/browser/ui/webui/omnibox/omnibox_ui.h" | 41 #include "chrome/browser/ui/webui/omnibox/omnibox_ui.h" |
| 42 #include "chrome/browser/ui/webui/options/options_ui.h" | 42 #include "chrome/browser/ui/webui/options/options_ui.h" |
| 43 #include "chrome/browser/ui/webui/password_manager_internals/password_manager_in
ternals_ui.h" | 43 #include "chrome/browser/ui/webui/password_manager_internals/password_manager_in
ternals_ui.h" |
| 44 #include "chrome/browser/ui/webui/plugins/plugins_ui.h" | 44 #include "chrome/browser/ui/webui/plugins/plugins_ui.h" |
| 45 #include "chrome/browser/ui/webui/policy_material_design_ui.h" | 45 #include "chrome/browser/ui/webui/policy_material_design_ui.h" |
| 46 #include "chrome/browser/ui/webui/policy_ui.h" | 46 #include "chrome/browser/ui/webui/policy_ui.h" |
| 47 #include "chrome/browser/ui/webui/predictors/predictors_ui.h" | 47 #include "chrome/browser/ui/webui/predictors/predictors_ui.h" |
| 48 #include "chrome/browser/ui/webui/profiler_ui.h" | 48 #include "chrome/browser/ui/webui/profiler_ui.h" |
| 49 #include "chrome/browser/ui/webui/settings/md_settings_ui.h" | 49 #include "chrome/browser/ui/webui/settings/md_settings_ui.h" |
| 50 #include "chrome/browser/ui/webui/settings_utils.h" |
| 50 #include "chrome/browser/ui/webui/signin/md_user_manager_ui.h" | 51 #include "chrome/browser/ui/webui/signin/md_user_manager_ui.h" |
| 51 #include "chrome/browser/ui/webui/signin/profile_signin_confirmation_ui.h" | 52 #include "chrome/browser/ui/webui/signin/profile_signin_confirmation_ui.h" |
| 52 #include "chrome/browser/ui/webui/signin_internals_ui.h" | 53 #include "chrome/browser/ui/webui/signin_internals_ui.h" |
| 53 #include "chrome/browser/ui/webui/supervised_user_internals_ui.h" | 54 #include "chrome/browser/ui/webui/supervised_user_internals_ui.h" |
| 54 #include "chrome/browser/ui/webui/sync_internals_ui.h" | 55 #include "chrome/browser/ui/webui/sync_internals_ui.h" |
| 55 #include "chrome/browser/ui/webui/translate_internals/translate_internals_ui.h" | 56 #include "chrome/browser/ui/webui/translate_internals/translate_internals_ui.h" |
| 56 #include "chrome/browser/ui/webui/user_actions/user_actions_ui.h" | 57 #include "chrome/browser/ui/webui/user_actions/user_actions_ui.h" |
| 57 #include "chrome/browser/ui/webui/version_ui.h" | 58 #include "chrome/browser/ui/webui/version_ui.h" |
| 58 #include "chrome/common/chrome_features.h" | 59 #include "chrome/common/chrome_features.h" |
| 59 #include "chrome/common/chrome_switches.h" | 60 #include "chrome/common/chrome_switches.h" |
| (...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 754 #endif | 755 #endif |
| 755 | 756 |
| 756 // Flash is not available on android. | 757 // Flash is not available on android. |
| 757 if (page_url.host() == chrome::kChromeUIFlashHost) | 758 if (page_url.host() == chrome::kChromeUIFlashHost) |
| 758 return FlashUI::GetFaviconResourceBytes(scale_factor); | 759 return FlashUI::GetFaviconResourceBytes(scale_factor); |
| 759 | 760 |
| 760 // Android uses the native download manager. | 761 // Android uses the native download manager. |
| 761 if (page_url.host() == chrome::kChromeUIDownloadsHost) | 762 if (page_url.host() == chrome::kChromeUIDownloadsHost) |
| 762 return MdDownloadsUI::GetFaviconResourceBytes(scale_factor); | 763 return MdDownloadsUI::GetFaviconResourceBytes(scale_factor); |
| 763 | 764 |
| 764 // Android doesn't use the Options pages. | 765 // Android doesn't use the Options/Settings pages. |
| 765 if (page_url.host() == chrome::kChromeUISettingsHost || | 766 if (page_url.host() == chrome::kChromeUISettingsHost || |
| 766 page_url.host() == chrome::kChromeUISettingsFrameHost) | 767 page_url.host() == chrome::kChromeUISettingsFrameHost || |
| 767 return options::OptionsUI::GetFaviconResourceBytes(scale_factor); | 768 page_url.host() == chrome::kChromeUIMdSettingsHost) |
| 769 return settings_utils::GetFaviconResourceBytes(scale_factor); |
| 768 | 770 |
| 769 #if defined(ENABLE_EXTENSIONS) | 771 #if defined(ENABLE_EXTENSIONS) |
| 770 if (page_url.host() == chrome::kChromeUIExtensionsHost || | 772 if (page_url.host() == chrome::kChromeUIExtensionsHost || |
| 771 page_url.host() == chrome::kChromeUIExtensionsFrameHost) | 773 page_url.host() == chrome::kChromeUIExtensionsFrameHost) |
| 772 return extensions::ExtensionsUI::GetFaviconResourceBytes(scale_factor); | 774 return extensions::ExtensionsUI::GetFaviconResourceBytes(scale_factor); |
| 773 #endif | 775 #endif |
| 774 | 776 |
| 775 // Android doesn't use the plugins pages. | 777 // Android doesn't use the plugins pages. |
| 776 if (page_url.host() == chrome::kChromeUIPluginsHost) | 778 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 777 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 779 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
| 778 | 780 |
| 779 #endif | 781 #endif |
| 780 | 782 |
| 781 return NULL; | 783 return NULL; |
| 782 } | 784 } |
| OLD | NEW |