Index: chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc |
diff --git a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc |
index 7b44b6b2b5ba5bdc5d1f5f0598c202ac05a75a97..550a578b44f45b1bd3e22fbb8dc7af7a9d7f4bc4 100644 |
--- a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc |
+++ b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc |
@@ -198,6 +198,8 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui, |
return &NewWebUI<WebDialogUI>; |
if (url.spec() == chrome::kChromeUIConstrainedHTMLTestURL) |
return &NewWebUI<ConstrainedWebDialogUI>; |
+ if (url.host() == chrome::kChromeUIFlagsHost) |
+ return &NewWebUI<FlagsUI>; |
if (url.host() == chrome::kChromeUIGpuInternalsHost) |
return &NewWebUI<GpuInternalsUI>; |
if (url.host() == chrome::kChromeUIHistoryFrameHost) |
@@ -256,10 +258,6 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui, |
// Feedback on Android uses the built-in feedback app. |
if (url.host() == chrome::kChromeUIFeedbackHost) |
return &NewWebUI<FeedbackUI>; |
- // chrome://flags is currently unsupported on Android. |
- // TODO(satish): Enable after http://crbug.com/143146 is fixed. |
- if (url.host() == chrome::kChromeUIFlagsHost) |
- return &NewWebUI<FlagsUI>; |
// Flash is not available on android. |
if (url.host() == chrome::kChromeUIFlashHost) |
return &NewWebUI<FlashUI>; |
@@ -594,6 +592,9 @@ base::RefCountedMemory* ChromeWebUIControllerFactory::GetFaviconResourceBytes( |
if (page_url.host() == chrome::kChromeUICrashesHost) |
return CrashesUI::GetFaviconResourceBytes(scale_factor); |
+ if (page_url.host() == chrome::kChromeUIFlagsHost) |
+ return FlagsUI::GetFaviconResourceBytes(scale_factor); |
+ |
if (page_url.host() == chrome::kChromeUIHistoryHost) |
return HistoryUI::GetFaviconResourceBytes(scale_factor); |
@@ -606,11 +607,6 @@ base::RefCountedMemory* ChromeWebUIControllerFactory::GetFaviconResourceBytes( |
if (page_url.host() == chrome::kChromeUIDownloadsHost) |
return DownloadsUI::GetFaviconResourceBytes(scale_factor); |
- // chrome://flags is currently unsupported on Android. |
- // TODO(satish): Enable after http://crbug.com/143146 is fixed. |
- if (page_url.host() == chrome::kChromeUIFlagsHost) |
- return FlagsUI::GetFaviconResourceBytes(scale_factor); |
- |
// Android doesn't use the Options pages. |
if (page_url.host() == chrome::kChromeUISettingsFrameHost) |
return options::OptionsUI::GetFaviconResourceBytes(scale_factor); |