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

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

Issue 1415333002: [Media Router] Add experiment control logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 1 month 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 #if defined(ENABLE_WEBRTC) 87 #if defined(ENABLE_WEBRTC)
88 #include "chrome/browser/ui/webui/media/webrtc_logs_ui.h" 88 #include "chrome/browser/ui/webui/media/webrtc_logs_ui.h"
89 #endif 89 #endif
90 90
91 #if defined(ENABLE_PRINT_PREVIEW) 91 #if defined(ENABLE_PRINT_PREVIEW)
92 #include "chrome/browser/ui/webui/print_preview/print_preview_ui.h" 92 #include "chrome/browser/ui/webui/print_preview/print_preview_ui.h"
93 #endif 93 #endif
94 94
95 #if defined(ENABLE_MEDIA_ROUTER) && !defined(OS_ANDROID) 95 #if defined(ENABLE_MEDIA_ROUTER) && !defined(OS_ANDROID)
96 #include "chrome/browser/media/router/media_router_feature.h"
96 #include "chrome/browser/ui/webui/media_router/media_router_ui.h" 97 #include "chrome/browser/ui/webui/media_router/media_router_ui.h"
97 #endif 98 #endif
98 99
99 #if !defined(OS_ANDROID) 100 #if !defined(OS_ANDROID)
100 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" 101 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h"
101 #include "chrome/browser/ui/webui/quota_internals/quota_internals_ui.h" 102 #include "chrome/browser/ui/webui/quota_internals/quota_internals_ui.h"
102 #include "chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_in ternals_ui.h" 103 #include "chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_in ternals_ui.h"
103 #include "chrome/browser/ui/webui/system_info_ui.h" 104 #include "chrome/browser/ui/webui/system_info_ui.h"
104 #include "chrome/browser/ui/webui/uber/uber_ui.h" 105 #include "chrome/browser/ui/webui/uber/uber_ui.h"
105 #endif 106 #endif
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 if (url.host() == chrome::kChromeUIDevicesHost) { 577 if (url.host() == chrome::kChromeUIDevicesHost) {
577 return &NewWebUI<LocalDiscoveryUI>; 578 return &NewWebUI<LocalDiscoveryUI>;
578 } 579 }
579 #endif 580 #endif
580 #if defined(ENABLE_WEBRTC) 581 #if defined(ENABLE_WEBRTC)
581 if (url.host() == chrome::kChromeUIWebRtcLogsHost) 582 if (url.host() == chrome::kChromeUIWebRtcLogsHost)
582 return &NewWebUI<WebRtcLogsUI>; 583 return &NewWebUI<WebRtcLogsUI>;
583 #endif 584 #endif
584 #if defined(ENABLE_MEDIA_ROUTER) && !defined(OS_ANDROID) 585 #if defined(ENABLE_MEDIA_ROUTER) && !defined(OS_ANDROID)
585 if (url.host() == chrome::kChromeUIMediaRouterHost && 586 if (url.host() == chrome::kChromeUIMediaRouterHost &&
586 switches::MediaRouterEnabled()) { 587 media_router::MediaRouterEnabled()) {
587 return &NewWebUI<media_router::MediaRouterUI>; 588 return &NewWebUI<media_router::MediaRouterUI>;
588 } 589 }
589 #endif 590 #endif
590 if (IsAboutUI(url)) 591 if (IsAboutUI(url))
591 return &NewWebUI<AboutUI>; 592 return &NewWebUI<AboutUI>;
592 593
593 if (dom_distiller::IsEnableDomDistillerSet() && 594 if (dom_distiller::IsEnableDomDistillerSet() &&
594 url.host() == dom_distiller::kChromeUIDomDistillerHost) { 595 url.host() == dom_distiller::kChromeUIDomDistillerHost) {
595 return &NewWebUI<dom_distiller::DomDistillerUi>; 596 return &NewWebUI<dom_distiller::DomDistillerUi>;
596 } 597 }
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 #endif 790 #endif
790 791
791 // Android doesn't use the plugins pages. 792 // Android doesn't use the plugins pages.
792 if (page_url.host() == chrome::kChromeUIPluginsHost) 793 if (page_url.host() == chrome::kChromeUIPluginsHost)
793 return PluginsUI::GetFaviconResourceBytes(scale_factor); 794 return PluginsUI::GetFaviconResourceBytes(scale_factor);
794 795
795 #endif 796 #endif
796 797
797 return NULL; 798 return NULL;
798 } 799 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698