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

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

Issue 547063003: Remove the unmaintained performance monitor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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
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 <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 24 matching lines...) Expand all
35 #include "chrome/browser/ui/webui/identity_internals_ui.h" 35 #include "chrome/browser/ui/webui/identity_internals_ui.h"
36 #include "chrome/browser/ui/webui/inspect_ui.h" 36 #include "chrome/browser/ui/webui/inspect_ui.h"
37 #include "chrome/browser/ui/webui/instant_ui.h" 37 #include "chrome/browser/ui/webui/instant_ui.h"
38 #include "chrome/browser/ui/webui/interstitials/interstitial_ui.h" 38 #include "chrome/browser/ui/webui/interstitials/interstitial_ui.h"
39 #include "chrome/browser/ui/webui/invalidations_ui.h" 39 #include "chrome/browser/ui/webui/invalidations_ui.h"
40 #include "chrome/browser/ui/webui/memory_internals/memory_internals_ui.h" 40 #include "chrome/browser/ui/webui/memory_internals/memory_internals_ui.h"
41 #include "chrome/browser/ui/webui/net_internals/net_internals_ui.h" 41 #include "chrome/browser/ui/webui/net_internals/net_internals_ui.h"
42 #include "chrome/browser/ui/webui/omnibox/omnibox_ui.h" 42 #include "chrome/browser/ui/webui/omnibox/omnibox_ui.h"
43 #include "chrome/browser/ui/webui/options/options_ui.h" 43 #include "chrome/browser/ui/webui/options/options_ui.h"
44 #include "chrome/browser/ui/webui/password_manager_internals/password_manager_in ternals_ui.h" 44 #include "chrome/browser/ui/webui/password_manager_internals/password_manager_in ternals_ui.h"
45 #include "chrome/browser/ui/webui/performance_monitor/performance_monitor_ui.h"
46 #include "chrome/browser/ui/webui/plugins_ui.h" 45 #include "chrome/browser/ui/webui/plugins_ui.h"
47 #include "chrome/browser/ui/webui/predictors/predictors_ui.h" 46 #include "chrome/browser/ui/webui/predictors/predictors_ui.h"
48 #include "chrome/browser/ui/webui/profiler_ui.h" 47 #include "chrome/browser/ui/webui/profiler_ui.h"
49 #include "chrome/browser/ui/webui/signin/inline_login_ui.h" 48 #include "chrome/browser/ui/webui/signin/inline_login_ui.h"
50 #include "chrome/browser/ui/webui/signin/profile_signin_confirmation_ui.h" 49 #include "chrome/browser/ui/webui/signin/profile_signin_confirmation_ui.h"
51 #include "chrome/browser/ui/webui/signin/user_manager_ui.h" 50 #include "chrome/browser/ui/webui/signin/user_manager_ui.h"
52 #include "chrome/browser/ui/webui/signin_internals_ui.h" 51 #include "chrome/browser/ui/webui/signin_internals_ui.h"
53 #include "chrome/browser/ui/webui/sync_internals_ui.h" 52 #include "chrome/browser/ui/webui/sync_internals_ui.h"
54 #include "chrome/browser/ui/webui/translate_internals/translate_internals_ui.h" 53 #include "chrome/browser/ui/webui/translate_internals/translate_internals_ui.h"
55 #include "chrome/browser/ui/webui/user_actions/user_actions_ui.h" 54 #include "chrome/browser/ui/webui/user_actions/user_actions_ui.h"
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 if (url.host() == chrome::kChromeUIHelpFrameHost) 373 if (url.host() == chrome::kChromeUIHelpFrameHost)
375 return &NewWebUI<HelpUI>; 374 return &NewWebUI<HelpUI>;
376 // Identity API is not available on Android. 375 // Identity API is not available on Android.
377 if (url.host() == chrome::kChromeUIIdentityInternalsHost) 376 if (url.host() == chrome::kChromeUIIdentityInternalsHost)
378 return &NewWebUI<IdentityInternalsUI>; 377 return &NewWebUI<IdentityInternalsUI>;
379 // chrome://inspect isn't supported on Android. Page debugging is handled by a 378 // chrome://inspect isn't supported on Android. Page debugging is handled by a
380 // remote devtools on the host machine, and other elements (Shared Workers, 379 // remote devtools on the host machine, and other elements (Shared Workers,
381 // extensions, etc) aren't supported. 380 // extensions, etc) aren't supported.
382 if (url.host() == chrome::kChromeUIInspectHost) 381 if (url.host() == chrome::kChromeUIInspectHost)
383 return &NewWebUI<InspectUI>; 382 return &NewWebUI<InspectUI>;
384 // Performance monitoring page is not on Android for now.
385 if (url.host() == chrome::kChromeUIPerformanceMonitorHost)
386 return &NewWebUI<performance_monitor::PerformanceMonitorUI>;
387 // Android does not support plugins for now. 383 // Android does not support plugins for now.
388 if (url.host() == chrome::kChromeUIPluginsHost) 384 if (url.host() == chrome::kChromeUIPluginsHost)
389 return &NewWebUI<PluginsUI>; 385 return &NewWebUI<PluginsUI>;
390 if (url.host() == chrome::kChromeUIQuotaInternalsHost) 386 if (url.host() == chrome::kChromeUIQuotaInternalsHost)
391 return &NewWebUI<QuotaInternalsUI>; 387 return &NewWebUI<QuotaInternalsUI>;
392 // Settings are implemented with native UI elements on Android. 388 // Settings are implemented with native UI elements on Android.
393 // Handle chrome://settings if settings in a window and about in settings 389 // Handle chrome://settings if settings in a window and about in settings
394 // are enabled. 390 // are enabled.
395 if (url.host() == chrome::kChromeUISettingsFrameHost || 391 if (url.host() == chrome::kChromeUISettingsFrameHost ||
396 (url.host() == chrome::kChromeUISettingsHost && 392 (url.host() == chrome::kChromeUISettingsHost &&
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 #endif 721 #endif
726 722
727 // Android doesn't use the plugins pages. 723 // Android doesn't use the plugins pages.
728 if (page_url.host() == chrome::kChromeUIPluginsHost) 724 if (page_url.host() == chrome::kChromeUIPluginsHost)
729 return PluginsUI::GetFaviconResourceBytes(scale_factor); 725 return PluginsUI::GetFaviconResourceBytes(scale_factor);
730 726
731 #endif 727 #endif
732 728
733 return NULL; 729 return NULL;
734 } 730 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/startup/startup_browser_creator_impl.cc ('k') | chrome/browser/ui/webui/performance_monitor/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698