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

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

Issue 9701006: Don't build the task manager into Android builds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // Special case the new tab page. In older versions of Chrome, the new tab 151 // Special case the new tab page. In older versions of Chrome, the new tab
152 // page was hosted at chrome-internal:<blah>. This might be in people's saved 152 // page was hosted at chrome-internal:<blah>. This might be in people's saved
153 // sessions or bookmarks, so we say any URL with that scheme triggers the new 153 // sessions or bookmarks, so we say any URL with that scheme triggers the new
154 // tab page. 154 // tab page.
155 if (url.host() == chrome::kChromeUINewTabHost || 155 if (url.host() == chrome::kChromeUINewTabHost ||
156 url.SchemeIs(chrome::kChromeInternalScheme)) { 156 url.SchemeIs(chrome::kChromeInternalScheme)) {
157 return &NewWebUI<NewTabUI>; 157 return &NewWebUI<NewTabUI>;
158 } 158 }
159 159
160 /**************************************************************************** 160 /****************************************************************************
161 * Please keep this in alphabetical order. If #ifs or special logics are 161 * Please keep this in alphabetical order. If #ifs or special logics are
Yaron 2012/03/14 13:36:38 See comment. The ifdef'd version should move down.
Jesse Greenwald 2012/03/30 21:54:47 Done.
162 * required, add it below in the appropriate section. 162 * required, add it below in the appropriate section.
163 ***************************************************************************/ 163 ***************************************************************************/
164 // We must compare hosts only since some of the Web UIs append extra stuff 164 // We must compare hosts only since some of the Web UIs append extra stuff
165 // after the host name. 165 // after the host name.
166 if (url.host() == chrome::kChromeUIBookmarksHost) 166 if (url.host() == chrome::kChromeUIBookmarksHost)
167 return &NewWebUI<BookmarksUI>; 167 return &NewWebUI<BookmarksUI>;
168 // All platform builds of Chrome will need to have a cloud printing 168 // All platform builds of Chrome will need to have a cloud printing
169 // dialog as backup. It's just that on Chrome OS, it's the only 169 // dialog as backup. It's just that on Chrome OS, it's the only
170 // print dialog. 170 // print dialog.
171 if (url.host() == chrome::kChromeUICloudPrintResourcesHost) 171 if (url.host() == chrome::kChromeUICloudPrintResourcesHost)
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 if (url.host() == chrome::kChromeUIProfilerHost) 209 if (url.host() == chrome::kChromeUIProfilerHost)
210 return &NewWebUI<ProfilerUI>; 210 return &NewWebUI<ProfilerUI>;
211 if (url.host() == chrome::kChromeUIQuotaInternalsHost) 211 if (url.host() == chrome::kChromeUIQuotaInternalsHost)
212 return &NewWebUI<QuotaInternalsUI>; 212 return &NewWebUI<QuotaInternalsUI>;
213 if (url.host() == chrome::kChromeUISessionsHost) 213 if (url.host() == chrome::kChromeUISessionsHost)
214 return &NewWebUI<SessionsUI>; 214 return &NewWebUI<SessionsUI>;
215 if (url.host() == chrome::kChromeUISyncInternalsHost) 215 if (url.host() == chrome::kChromeUISyncInternalsHost)
216 return &NewWebUI<SyncInternalsUI>; 216 return &NewWebUI<SyncInternalsUI>;
217 if (url.host() == chrome::kChromeUISyncResourcesHost) 217 if (url.host() == chrome::kChromeUISyncResourcesHost)
218 return &NewWebUI<HtmlDialogUI>; 218 return &NewWebUI<HtmlDialogUI>;
219 #if defined(ENABLE_TASK_MANAGER)
219 if (url.host() == chrome::kChromeUITaskManagerHost) 220 if (url.host() == chrome::kChromeUITaskManagerHost)
220 return &NewWebUI<TaskManagerUI>; 221 return &NewWebUI<TaskManagerUI>;
222 #endif
221 if (url.host() == chrome::kChromeUITracingHost) 223 if (url.host() == chrome::kChromeUITracingHost)
222 return &NewWebUI<TracingUI>; 224 return &NewWebUI<TracingUI>;
223 if (url.host() == chrome::kChromeUIUberFrameHost) 225 if (url.host() == chrome::kChromeUIUberFrameHost)
224 return &NewWebUI<UberFrameUI>; 226 return &NewWebUI<UberFrameUI>;
225 if (url.host() == chrome::kChromeUIUberHost) 227 if (url.host() == chrome::kChromeUIUberHost)
226 return &NewWebUI<UberUI>; 228 return &NewWebUI<UberUI>;
227 if (url.host() == chrome::kChromeUIWorkersHost) 229 if (url.host() == chrome::kChromeUIWorkersHost)
228 return &NewWebUI<WorkersUI>; 230 return &NewWebUI<WorkersUI>;
229 231
230 /**************************************************************************** 232 /****************************************************************************
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 } 311 }
310 #endif 312 #endif
311 313
312 if (url.host() == chrome::kChromeUIChromeURLsHost || 314 if (url.host() == chrome::kChromeUIChromeURLsHost ||
313 url.host() == chrome::kChromeUICreditsHost || 315 url.host() == chrome::kChromeUICreditsHost ||
314 url.host() == chrome::kChromeUIDNSHost || 316 url.host() == chrome::kChromeUIDNSHost ||
315 url.host() == chrome::kChromeUIHistogramsHost || 317 url.host() == chrome::kChromeUIHistogramsHost ||
316 url.host() == chrome::kChromeUIMemoryHost || 318 url.host() == chrome::kChromeUIMemoryHost ||
317 url.host() == chrome::kChromeUIMemoryRedirectHost || 319 url.host() == chrome::kChromeUIMemoryRedirectHost ||
318 url.host() == chrome::kChromeUIStatsHost || 320 url.host() == chrome::kChromeUIStatsHost ||
319 url.host() == chrome::kChromeUITaskManagerHost || 321 url.host() == chrome::kChromeUITaskManagerHost ||
Yaron 2012/03/14 13:36:38 Also referenced here.
Jesse Greenwald 2012/03/30 21:54:47 Done.
320 url.host() == chrome::kChromeUITermsHost || 322 url.host() == chrome::kChromeUITermsHost ||
321 url.host() == chrome::kChromeUIVersionHost 323 url.host() == chrome::kChromeUIVersionHost
322 #if defined(USE_TCMALLOC) 324 #if defined(USE_TCMALLOC)
323 || url.host() == chrome::kChromeUITCMallocHost 325 || url.host() == chrome::kChromeUITCMallocHost
324 #endif 326 #endif
325 #if defined(OS_LINUX) || defined(OS_OPENBSD) 327 #if defined(OS_LINUX) || defined(OS_OPENBSD)
326 || url.host() == chrome::kChromeUILinuxProxyConfigHost 328 || url.host() == chrome::kChromeUILinuxProxyConfigHost
327 || url.host() == chrome::kChromeUISandboxHost 329 || url.host() == chrome::kChromeUISandboxHost
328 #endif 330 #endif
329 #if defined(OS_CHROMEOS) 331 #if defined(OS_CHROMEOS)
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 500
499 if (page_url.host() == chrome::kChromeUISettingsFrameHost) 501 if (page_url.host() == chrome::kChromeUISettingsFrameHost)
500 return options2::OptionsUI::GetFaviconResourceBytes(); 502 return options2::OptionsUI::GetFaviconResourceBytes();
501 #endif 503 #endif
502 504
503 if (page_url.host() == chrome::kChromeUIPluginsHost) 505 if (page_url.host() == chrome::kChromeUIPluginsHost)
504 return PluginsUI::GetFaviconResourceBytes(); 506 return PluginsUI::GetFaviconResourceBytes();
505 507
506 return NULL; 508 return NULL;
507 } 509 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/chrome_render_message_filter.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698