Remove chrome help and feedback pages for Android.

On Android, they're implemented with native UI.

BUG=117407
TEST=


Review URL: http://codereview.chromium.org/9815013

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128218 0039d316-1c4b-4281-b951-d872f2087c98
parent 4db6c319
...@@ -182,16 +182,12 @@ WebUIFactoryFunction GetWebUIFactoryFunction(content::WebUI* web_ui, ...@@ -182,16 +182,12 @@ WebUIFactoryFunction GetWebUIFactoryFunction(content::WebUI* web_ui,
return &NewWebUI<ConstrainedHtmlUI>; return &NewWebUI<ConstrainedHtmlUI>;
if (url.host() == chrome::kChromeUIExtensionsFrameHost) if (url.host() == chrome::kChromeUIExtensionsFrameHost)
return &NewWebUI<ExtensionsUI>; return &NewWebUI<ExtensionsUI>;
if (url.host() == chrome::kChromeUIFeedbackHost)
return &NewWebUI<FeedbackUI>;
if (url.host() == chrome::kChromeUIFlagsHost) if (url.host() == chrome::kChromeUIFlagsHost)
return &NewWebUI<FlagsUI>; return &NewWebUI<FlagsUI>;
if (url.host() == chrome::kChromeUIFlashHost) if (url.host() == chrome::kChromeUIFlashHost)
return &NewWebUI<FlashUI>; return &NewWebUI<FlashUI>;
if (url.host() == chrome::kChromeUIGpuInternalsHost) if (url.host() == chrome::kChromeUIGpuInternalsHost)
return &NewWebUI<GpuInternalsUI>; return &NewWebUI<GpuInternalsUI>;
if (url.host() == chrome::kChromeUIHelpFrameHost)
return &NewWebUI<HelpUI>;
if (url.host() == chrome::kChromeUIHistoryFrameHost) if (url.host() == chrome::kChromeUIHistoryFrameHost)
return &NewWebUI<HistoryUI>; return &NewWebUI<HistoryUI>;
if (url.host() == chrome::kChromeUIMediaInternalsHost) if (url.host() == chrome::kChromeUIMediaInternalsHost)
...@@ -229,15 +225,17 @@ WebUIFactoryFunction GetWebUIFactoryFunction(content::WebUI* web_ui, ...@@ -229,15 +225,17 @@ WebUIFactoryFunction GetWebUIFactoryFunction(content::WebUI* web_ui,
* OS Specific #defines * OS Specific #defines
***************************************************************************/ ***************************************************************************/
#if !defined(OS_ANDROID) #if !defined(OS_ANDROID)
// Android uses the native download manager. // These pages are implemented with native UI elements on Android.
if (url.host() == chrome::kChromeUIDownloadsHost) if (url.host() == chrome::kChromeUIDownloadsHost)
return &NewWebUI<DownloadsUI>; return &NewWebUI<DownloadsUI>;
// Android doesn't use the Options/Options2 pages. if (url.host() == chrome::kChromeUIFeedbackHost)
return &NewWebUI<FeedbackUI>;
if (url.host() == chrome::kChromeUIHelpFrameHost)
return &NewWebUI<HelpUI>;
if (url.host() == chrome::kChromeUISettingsFrameHost) if (url.host() == chrome::kChromeUISettingsFrameHost)
return &NewWebUI<options2::OptionsUI>; return &NewWebUI<options2::OptionsUI>;
if (url.host() == chrome::kChromeUISettingsHost) if (url.host() == chrome::kChromeUISettingsHost)
return &NewWebUI<OptionsUI>; return &NewWebUI<OptionsUI>;
// Android doesn't support print/print-preview
if (url.host() == chrome::kChromeUIPrintHost && if (url.host() == chrome::kChromeUIPrintHost &&
!g_browser_process->local_state()->GetBoolean( !g_browser_process->local_state()->GetBoolean(
prefs::kPrintPreviewDisabled)) { prefs::kPrintPreviewDisabled)) {
......
...@@ -4501,6 +4501,8 @@ ...@@ -4501,6 +4501,8 @@
['exclude', '^browser/ui/tabs/'], ['exclude', '^browser/ui/tabs/'],
['exclude', '^browser/ui/toolbar/'], ['exclude', '^browser/ui/toolbar/'],
['exclude', '^browser/ui/webui/downloads_'], ['exclude', '^browser/ui/webui/downloads_'],
['exclude', '^browser/ui/webui/feedback_'],
['exclude', '^browser/ui/webui/help/'],
['exclude', '^browser/ui/webui/options'], ['exclude', '^browser/ui/webui/options'],
['exclude', '^browser/ui/webui/options2'], ['exclude', '^browser/ui/webui/options2'],
['exclude', '^browser/ui/webui/print_preview/'], ['exclude', '^browser/ui/webui/print_preview/'],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment