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

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

Issue 2435033004: Enable chrome://device-emulator in non-official NDEBUG builds. (Closed)
Patch Set: merge TOT Created 4 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
« no previous file with comments | « no previous file | chrome/common/url_constants.cc » ('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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" 145 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h"
146 #include "chrome/browser/ui/webui/chromeos/set_time_ui.h" 146 #include "chrome/browser/ui/webui/chromeos/set_time_ui.h"
147 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" 147 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h"
148 #include "chrome/browser/ui/webui/chromeos/slow_trace_ui.h" 148 #include "chrome/browser/ui/webui/chromeos/slow_trace_ui.h"
149 #include "chrome/browser/ui/webui/chromeos/slow_ui.h" 149 #include "chrome/browser/ui/webui/chromeos/slow_ui.h"
150 #include "chrome/browser/ui/webui/voice_search_ui.h" 150 #include "chrome/browser/ui/webui/voice_search_ui.h"
151 #include "components/proximity_auth/webui/proximity_auth_ui.h" 151 #include "components/proximity_auth/webui/proximity_auth_ui.h"
152 #include "components/proximity_auth/webui/url_constants.h" 152 #include "components/proximity_auth/webui/url_constants.h"
153 #endif 153 #endif
154 154
155 #if defined(OS_CHROMEOS) && !defined(NDEBUG) 155 #if defined(OS_CHROMEOS) && !defined(OFFICIAL_BUILD)
156 #include "chrome/browser/ui/webui/chromeos/emulator/device_emulator_ui.h" 156 #include "chrome/browser/ui/webui/chromeos/emulator/device_emulator_ui.h"
157 #endif 157 #endif
158 158
159 #if !defined(OS_CHROMEOS) 159 #if !defined(OS_CHROMEOS)
160 #include "chrome/browser/ui/webui/app_launcher_page_ui.h" 160 #include "chrome/browser/ui/webui/app_launcher_page_ui.h"
161 #endif 161 #endif
162 162
163 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) 163 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID)
164 #include "chrome/browser/ui/sync/sync_promo_ui.h" 164 #include "chrome/browser/ui/sync/sync_promo_ui.h"
165 #include "chrome/browser/ui/webui/signin/inline_login_ui.h" 165 #include "chrome/browser/ui/webui/signin/inline_login_ui.h"
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 if (url.host() == chrome::kChromeUISetTimeHost) 504 if (url.host() == chrome::kChromeUISetTimeHost)
505 return &NewWebUI<chromeos::SetTimeUI>; 505 return &NewWebUI<chromeos::SetTimeUI>;
506 if (url.host() == chrome::kChromeUISimUnlockHost) 506 if (url.host() == chrome::kChromeUISimUnlockHost)
507 return &NewWebUI<chromeos::SimUnlockUI>; 507 return &NewWebUI<chromeos::SimUnlockUI>;
508 if (url.host() == chrome::kChromeUISlowHost) 508 if (url.host() == chrome::kChromeUISlowHost)
509 return &NewWebUI<chromeos::SlowUI>; 509 return &NewWebUI<chromeos::SlowUI>;
510 if (url.host() == chrome::kChromeUISlowTraceHost) 510 if (url.host() == chrome::kChromeUISlowTraceHost)
511 return &NewWebUI<chromeos::SlowTraceController>; 511 return &NewWebUI<chromeos::SlowTraceController>;
512 if (url.host() == chrome::kChromeUIVoiceSearchHost) 512 if (url.host() == chrome::kChromeUIVoiceSearchHost)
513 return &NewWebUI<VoiceSearchUI>; 513 return &NewWebUI<VoiceSearchUI>;
514 #if !defined(NDEBUG) 514 #if !defined(OFFICIAL_BUILD)
515 if (!base::SysInfo::IsRunningOnChromeOS()) { 515 if (!base::SysInfo::IsRunningOnChromeOS()) {
516 if (url.host() == chrome::kChromeUIDeviceEmulatorHost) 516 if (url.host() == chrome::kChromeUIDeviceEmulatorHost)
517 return &NewWebUI<DeviceEmulatorUI>; 517 return &NewWebUI<DeviceEmulatorUI>;
518 } 518 }
519 #endif // !defined(NDEBUG) 519 #endif // !defined(OFFICIAL_BUILD)
520 #endif // defined(OS_CHROMEOS) 520 #endif // defined(OS_CHROMEOS)
521 #if defined(OS_ANDROID) 521 #if defined(OS_ANDROID)
522 if (url.host() == chrome::kChromeUIOfflineInternalsHost) 522 if (url.host() == chrome::kChromeUIOfflineInternalsHost)
523 return &NewWebUI<OfflineInternalsUI>; 523 return &NewWebUI<OfflineInternalsUI>;
524 if (url.host() == chrome::kChromeUIPopularSitesInternalsHost) 524 if (url.host() == chrome::kChromeUIPopularSitesInternalsHost)
525 return &NewWebUI<PopularSitesInternalsUI>; 525 return &NewWebUI<PopularSitesInternalsUI>;
526 if (url.host() == chrome::kChromeUISnippetsInternalsHost && 526 if (url.host() == chrome::kChromeUISnippetsInternalsHost &&
527 !profile->IsOffTheRecord()) 527 !profile->IsOffTheRecord())
528 return &NewWebUI<SnippetsInternalsUI>; 528 return &NewWebUI<SnippetsInternalsUI>;
529 #if defined(ENABLE_VR_SHELL) || defined(ENABLE_WEBVR) 529 #if defined(ENABLE_VR_SHELL) || defined(ENABLE_WEBVR)
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 #endif 834 #endif
835 835
836 // Android doesn't use the plugins pages. 836 // Android doesn't use the plugins pages.
837 if (page_url.host() == chrome::kChromeUIPluginsHost) 837 if (page_url.host() == chrome::kChromeUIPluginsHost)
838 return PluginsUI::GetFaviconResourceBytes(scale_factor); 838 return PluginsUI::GetFaviconResourceBytes(scale_factor);
839 839
840 #endif 840 #endif
841 841
842 return NULL; 842 return NULL;
843 } 843 }
OLDNEW
« no previous file with comments | « no previous file | chrome/common/url_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698