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

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

Issue 2745943002: Remove enable_webvr from build/config, and move it to the buildflag_header system. (Closed)
Patch Set: rebase Created 3 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
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/common/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 #include "components/favicon/core/favicon_service.h" 74 #include "components/favicon/core/favicon_service.h"
75 #include "components/favicon_base/favicon_util.h" 75 #include "components/favicon_base/favicon_util.h"
76 #include "components/favicon_base/select_favicon_frames.h" 76 #include "components/favicon_base/select_favicon_frames.h"
77 #include "components/history/core/browser/history_types.h" 77 #include "components/history/core/browser/history_types.h"
78 #include "components/prefs/pref_service.h" 78 #include "components/prefs/pref_service.h"
79 #include "components/signin/core/common/profile_management_switches.h" 79 #include "components/signin/core/common/profile_management_switches.h"
80 #include "content/public/browser/web_contents.h" 80 #include "content/public/browser/web_contents.h"
81 #include "content/public/browser/web_ui.h" 81 #include "content/public/browser/web_ui.h"
82 #include "content/public/common/content_client.h" 82 #include "content/public/common/content_client.h"
83 #include "content/public/common/url_utils.h" 83 #include "content/public/common/url_utils.h"
84 #include "device/vr/features.h"
84 #include "extensions/features/features.h" 85 #include "extensions/features/features.h"
85 #include "media/media_features.h" 86 #include "media/media_features.h"
86 #include "ppapi/features/features.h" 87 #include "ppapi/features/features.h"
87 #include "printing/features/features.h" 88 #include "printing/features/features.h"
88 #include "ui/gfx/favicon_size.h" 89 #include "ui/gfx/favicon_size.h"
89 #include "ui/web_dialogs/web_dialog_ui.h" 90 #include "ui/web_dialogs/web_dialog_ui.h"
90 #include "url/gurl.h" 91 #include "url/gurl.h"
91 92
92 #if !defined(DISABLE_NACL) 93 #if !defined(DISABLE_NACL)
93 #include "chrome/browser/ui/webui/nacl_ui.h" 94 #include "chrome/browser/ui/webui/nacl_ui.h"
(...skipping 15 matching lines...) Expand all
109 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS) 110 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS)
110 #include "chrome/browser/ui/webui/cast/cast_ui.h" 111 #include "chrome/browser/ui/webui/cast/cast_ui.h"
111 #endif 112 #endif
112 #endif 113 #endif
113 114
114 #if defined(OS_ANDROID) 115 #if defined(OS_ANDROID)
115 #include "chrome/browser/ui/webui/offline/offline_internals_ui.h" 116 #include "chrome/browser/ui/webui/offline/offline_internals_ui.h"
116 #include "chrome/browser/ui/webui/popular_sites_internals_ui.h" 117 #include "chrome/browser/ui/webui/popular_sites_internals_ui.h"
117 #include "chrome/browser/ui/webui/snippets_internals_ui.h" 118 #include "chrome/browser/ui/webui/snippets_internals_ui.h"
118 #include "chrome/browser/ui/webui/webapks_ui.h" 119 #include "chrome/browser/ui/webui/webapks_ui.h"
119 #if defined(ENABLE_WEBVR) 120 #if BUILDFLAG(ENABLE_WEBVR)
120 #include "chrome/browser/ui/webui/vr_shell/vr_shell_ui_ui.h" 121 #include "chrome/browser/ui/webui/vr_shell/vr_shell_ui_ui.h"
121 #endif 122 #endif
122 #else 123 #else
123 #include "chrome/browser/signin/easy_unlock_service.h" 124 #include "chrome/browser/signin/easy_unlock_service.h"
124 #include "chrome/browser/signin/easy_unlock_service_factory.h" 125 #include "chrome/browser/signin/easy_unlock_service_factory.h"
125 #include "chrome/browser/ui/webui/devtools_ui.h" 126 #include "chrome/browser/ui/webui/devtools_ui.h"
126 #include "chrome/browser/ui/webui/inspect_ui.h" 127 #include "chrome/browser/ui/webui/inspect_ui.h"
127 #include "chrome/browser/ui/webui/md_bookmarks/md_bookmarks_ui.h" 128 #include "chrome/browser/ui/webui/md_bookmarks/md_bookmarks_ui.h"
128 #include "chrome/browser/ui/webui/md_downloads/md_downloads_ui.h" 129 #include "chrome/browser/ui/webui/md_downloads/md_downloads_ui.h"
129 #include "chrome/browser/ui/webui/md_feedback/md_feedback_ui.h" 130 #include "chrome/browser/ui/webui/md_feedback/md_feedback_ui.h"
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 #if defined(OS_ANDROID) 516 #if defined(OS_ANDROID)
516 if (url.host_piece() == chrome::kChromeUIOfflineInternalsHost) 517 if (url.host_piece() == chrome::kChromeUIOfflineInternalsHost)
517 return &NewWebUI<OfflineInternalsUI>; 518 return &NewWebUI<OfflineInternalsUI>;
518 if (url.host_piece() == chrome::kChromeUIPopularSitesInternalsHost) 519 if (url.host_piece() == chrome::kChromeUIPopularSitesInternalsHost)
519 return &NewWebUI<PopularSitesInternalsUI>; 520 return &NewWebUI<PopularSitesInternalsUI>;
520 if (url.host_piece() == chrome::kChromeUISnippetsInternalsHost && 521 if (url.host_piece() == chrome::kChromeUISnippetsInternalsHost &&
521 !profile->IsOffTheRecord()) 522 !profile->IsOffTheRecord())
522 return &NewWebUI<SnippetsInternalsUI>; 523 return &NewWebUI<SnippetsInternalsUI>;
523 if (url.host_piece() == chrome::kChromeUIWebApksHost) 524 if (url.host_piece() == chrome::kChromeUIWebApksHost)
524 return &NewWebUI<WebApksUI>; 525 return &NewWebUI<WebApksUI>;
525 #if defined(ENABLE_WEBVR) 526 #if BUILDFLAG(ENABLE_WEBVR)
526 if (url.host_piece() == chrome::kChromeUIVrShellUIHost) 527 if (url.host_piece() == chrome::kChromeUIVrShellUIHost)
527 return &NewWebUI<VrShellUIUI>; 528 return &NewWebUI<VrShellUIUI>;
528 #endif 529 #endif
529 #else 530 #else
530 if (url.SchemeIs(content::kChromeDevToolsScheme)) { 531 if (url.SchemeIs(content::kChromeDevToolsScheme)) {
531 if (!DevToolsUIBindings::IsValidFrontendURL(url)) 532 if (!DevToolsUIBindings::IsValidFrontendURL(url))
532 return nullptr; 533 return nullptr;
533 return &NewWebUI<DevToolsUI>; 534 return &NewWebUI<DevToolsUI>;
534 } 535 }
535 // chrome://inspect isn't supported on Android nor iOS. Page debugging is 536 // chrome://inspect isn't supported on Android nor iOS. Page debugging is
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 822
822 #if BUILDFLAG(ENABLE_EXTENSIONS) 823 #if BUILDFLAG(ENABLE_EXTENSIONS)
823 if (page_url.host_piece() == chrome::kChromeUIExtensionsHost || 824 if (page_url.host_piece() == chrome::kChromeUIExtensionsHost ||
824 page_url.host_piece() == chrome::kChromeUIExtensionsFrameHost) 825 page_url.host_piece() == chrome::kChromeUIExtensionsFrameHost)
825 return extensions::ExtensionsUI::GetFaviconResourceBytes(scale_factor); 826 return extensions::ExtensionsUI::GetFaviconResourceBytes(scale_factor);
826 #endif // BUILDFLAG(ENABLE_EXTENSIONS) 827 #endif // BUILDFLAG(ENABLE_EXTENSIONS)
827 #endif // !defined(OS_ANDROID) 828 #endif // !defined(OS_ANDROID)
828 829
829 return NULL; 830 return NULL;
830 } 831 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698