Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc

Issue 10073017: Remove Active Downloads UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/about_flags.h" 8 #include "chrome/browser/about_flags.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/extensions/extension_service.h" 10 #include "chrome/browser/extensions/extension_service.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 #include "chrome/common/chrome_switches.h" 50 #include "chrome/common/chrome_switches.h"
51 #include "chrome/common/extensions/extension_constants.h" 51 #include "chrome/common/extensions/extension_constants.h"
52 #include "chrome/common/pref_names.h" 52 #include "chrome/common/pref_names.h"
53 #include "chrome/common/url_constants.h" 53 #include "chrome/common/url_constants.h"
54 #include "content/public/browser/web_contents.h" 54 #include "content/public/browser/web_contents.h"
55 #include "content/public/browser/web_ui.h" 55 #include "content/public/browser/web_ui.h"
56 #include "content/public/common/content_client.h" 56 #include "content/public/common/content_client.h"
57 #include "googleurl/src/gurl.h" 57 #include "googleurl/src/gurl.h"
58 58
59 #if defined(OS_CHROMEOS) 59 #if defined(OS_CHROMEOS)
60 #include "chrome/browser/ui/webui/chromeos/active_downloads_ui.h"
61 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" 60 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h"
62 #include "chrome/browser/ui/webui/chromeos/gdata_ui.h" 61 #include "chrome/browser/ui/webui/chromeos/gdata_ui.h"
63 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" 62 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h"
64 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" 63 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h"
65 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" 64 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
66 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" 65 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h"
67 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" 66 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h"
68 #include "chrome/browser/ui/webui/chromeos/register_page_ui.h" 67 #include "chrome/browser/ui/webui/chromeos/register_page_ui.h"
69 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" 68 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h"
70 #include "chrome/browser/ui/webui/chromeos/system_info_ui.h" 69 #include "chrome/browser/ui/webui/chromeos/system_info_ui.h"
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 #endif 245 #endif
247 #if defined(OS_WIN) 246 #if defined(OS_WIN)
248 if (url.host() == chrome::kChromeUIConflictsHost) 247 if (url.host() == chrome::kChromeUIConflictsHost)
249 return &NewWebUI<ConflictsUI>; 248 return &NewWebUI<ConflictsUI>;
250 #endif 249 #endif
251 #if (defined(USE_NSS) || defined(USE_OPENSSL)) && defined(USE_AURA) 250 #if (defined(USE_NSS) || defined(USE_OPENSSL)) && defined(USE_AURA)
252 if (url.host() == chrome::kChromeUICertificateViewerHost) 251 if (url.host() == chrome::kChromeUICertificateViewerHost)
253 return &NewWebUI<CertificateViewerUI>; 252 return &NewWebUI<CertificateViewerUI>;
254 #endif 253 #endif
255 #if defined(OS_CHROMEOS) 254 #if defined(OS_CHROMEOS)
256 if (url.host() == chrome::kChromeUIActiveDownloadsHost)
257 return &NewWebUI<ActiveDownloadsUI>;
258 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) 255 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost)
259 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; 256 return &NewWebUI<chromeos::ChooseMobileNetworkUI>;
260 if (url.host() == chrome::kChromeUIGDataHost) 257 if (url.host() == chrome::kChromeUIGDataHost)
261 return &NewWebUI<GDataUI>; 258 return &NewWebUI<GDataUI>;
262 if (url.host() == chrome::kChromeUIImageBurnerHost) 259 if (url.host() == chrome::kChromeUIImageBurnerHost)
263 return &NewWebUI<ImageBurnUI>; 260 return &NewWebUI<ImageBurnUI>;
264 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) 261 if (url.host() == chrome::kChromeUIKeyboardOverlayHost)
265 return &NewWebUI<KeyboardOverlayUI>; 262 return &NewWebUI<KeyboardOverlayUI>;
266 if (url.host() == chrome::kChromeUIMobileSetupHost) 263 if (url.host() == chrome::kChromeUIMobileSetupHost)
267 return &NewWebUI<MobileSetupUI>; 264 return &NewWebUI<MobileSetupUI>;
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 if (page_url.host() == chrome::kChromeUISettingsFrameHost) 497 if (page_url.host() == chrome::kChromeUISettingsFrameHost)
501 return options2::OptionsUI::GetFaviconResourceBytes(); 498 return options2::OptionsUI::GetFaviconResourceBytes();
502 499
503 // Android doesn't use the plugins pages. 500 // Android doesn't use the plugins pages.
504 if (page_url.host() == chrome::kChromeUIPluginsHost) 501 if (page_url.host() == chrome::kChromeUIPluginsHost)
505 return PluginsUI::GetFaviconResourceBytes(); 502 return PluginsUI::GetFaviconResourceBytes();
506 #endif 503 #endif
507 504
508 return NULL; 505 return NULL;
509 } 506 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698