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

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

Issue 2006083002: Use fake Input Device Settings with chrome://device-emulator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@DevicePageTestsFixes
Patch Set: cleanup Created 4 years, 5 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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" 139 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h"
140 #include "chrome/browser/ui/webui/chromeos/set_time_ui.h" 140 #include "chrome/browser/ui/webui/chromeos/set_time_ui.h"
141 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" 141 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h"
142 #include "chrome/browser/ui/webui/chromeos/slow_trace_ui.h" 142 #include "chrome/browser/ui/webui/chromeos/slow_trace_ui.h"
143 #include "chrome/browser/ui/webui/chromeos/slow_ui.h" 143 #include "chrome/browser/ui/webui/chromeos/slow_ui.h"
144 #include "chrome/browser/ui/webui/voice_search_ui.h" 144 #include "chrome/browser/ui/webui/voice_search_ui.h"
145 #include "components/proximity_auth/webui/proximity_auth_ui.h" 145 #include "components/proximity_auth/webui/proximity_auth_ui.h"
146 #include "components/proximity_auth/webui/url_constants.h" 146 #include "components/proximity_auth/webui/url_constants.h"
147 #endif 147 #endif
148 148
149 #if !defined(OFFICIAL_BUILD) && defined(OS_CHROMEOS) && !defined(NDEBUG) 149 #if defined(OS_CHROMEOS) && !defined(NDEBUG)
150 #include "chrome/browser/ui/webui/chromeos/emulator/device_emulator_ui.h" 150 #include "chrome/browser/ui/webui/chromeos/emulator/device_emulator_ui.h"
151 #endif 151 #endif
152 152
153 #if !defined(OS_CHROMEOS) 153 #if !defined(OS_CHROMEOS)
154 #include "chrome/browser/ui/webui/app_launcher_page_ui.h" 154 #include "chrome/browser/ui/webui/app_launcher_page_ui.h"
155 #endif 155 #endif
156 156
157 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) 157 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID)
158 #include "chrome/browser/ui/sync/sync_promo_ui.h" 158 #include "chrome/browser/ui/sync/sync_promo_ui.h"
159 #include "chrome/browser/ui/webui/signin/inline_login_ui.h" 159 #include "chrome/browser/ui/webui/signin/inline_login_ui.h"
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 if (url.host() == chrome::kChromeUISetTimeHost) 490 if (url.host() == chrome::kChromeUISetTimeHost)
491 return &NewWebUI<chromeos::SetTimeUI>; 491 return &NewWebUI<chromeos::SetTimeUI>;
492 if (url.host() == chrome::kChromeUISimUnlockHost) 492 if (url.host() == chrome::kChromeUISimUnlockHost)
493 return &NewWebUI<chromeos::SimUnlockUI>; 493 return &NewWebUI<chromeos::SimUnlockUI>;
494 if (url.host() == chrome::kChromeUISlowHost) 494 if (url.host() == chrome::kChromeUISlowHost)
495 return &NewWebUI<chromeos::SlowUI>; 495 return &NewWebUI<chromeos::SlowUI>;
496 if (url.host() == chrome::kChromeUISlowTraceHost) 496 if (url.host() == chrome::kChromeUISlowTraceHost)
497 return &NewWebUI<chromeos::SlowTraceController>; 497 return &NewWebUI<chromeos::SlowTraceController>;
498 if (url.host() == chrome::kChromeUIVoiceSearchHost) 498 if (url.host() == chrome::kChromeUIVoiceSearchHost)
499 return &NewWebUI<VoiceSearchUI>; 499 return &NewWebUI<VoiceSearchUI>;
500 #if !defined(GOOGLE_CHROME_BUILD) && !defined(NDEBUG) 500 #if !defined(NDEBUG)
501 if (!base::SysInfo::IsRunningOnChromeOS()) { 501 if (!base::SysInfo::IsRunningOnChromeOS()) {
502 if (url.host() == chrome::kChromeUIDeviceEmulatorHost) 502 if (url.host() == chrome::kChromeUIDeviceEmulatorHost)
503 return &NewWebUI<DeviceEmulatorUI>; 503 return &NewWebUI<DeviceEmulatorUI>;
504 } 504 }
505 #endif // !defined(GOOGLE_CHROME_BUILD) && !defined(NDEBUG) 505 #endif // !defined(NDEBUG)
506 #endif // defined(OS_CHROMEOS) 506 #endif // defined(OS_CHROMEOS)
507 #if defined(OS_ANDROID) 507 #if defined(OS_ANDROID)
508 if (url.host() == chrome::kChromeUINetExportHost) 508 if (url.host() == chrome::kChromeUINetExportHost)
509 return &NewWebUI<NetExportUI>; 509 return &NewWebUI<NetExportUI>;
510 if (url.host() == chrome::kChromeUIOfflineInternalsHost) 510 if (url.host() == chrome::kChromeUIOfflineInternalsHost)
511 return &NewWebUI<OfflineInternalsUI>; 511 return &NewWebUI<OfflineInternalsUI>;
512 if (url.host() == chrome::kChromeUIPopularSitesInternalsHost) 512 if (url.host() == chrome::kChromeUIPopularSitesInternalsHost)
513 return &NewWebUI<PopularSitesInternalsUI>; 513 return &NewWebUI<PopularSitesInternalsUI>;
514 if (url.host() == chrome::kChromeUISnippetsInternalsHost && 514 if (url.host() == chrome::kChromeUISnippetsInternalsHost &&
515 !profile->IsOffTheRecord()) 515 !profile->IsOffTheRecord())
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 #endif 812 #endif
813 813
814 // Android doesn't use the plugins pages. 814 // Android doesn't use the plugins pages.
815 if (page_url.host() == chrome::kChromeUIPluginsHost) 815 if (page_url.host() == chrome::kChromeUIPluginsHost)
816 return PluginsUI::GetFaviconResourceBytes(scale_factor); 816 return PluginsUI::GetFaviconResourceBytes(scale_factor);
817 817
818 #endif 818 #endif
819 819
820 return NULL; 820 return NULL;
821 } 821 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698