Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 112 #include "components/proximity_auth/webui/proximity_auth_ui.h" | 112 #include "components/proximity_auth/webui/proximity_auth_ui.h" |
| 113 #include "components/proximity_auth/webui/url_constants.h" | 113 #include "components/proximity_auth/webui/url_constants.h" |
| 114 #endif | 114 #endif |
| 115 | 115 |
| 116 #if defined(OS_CHROMEOS) | 116 #if defined(OS_CHROMEOS) |
| 117 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" | 117 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" |
| 118 #include "chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.h" | 118 #include "chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.h" |
| 119 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" | 119 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" |
| 120 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" | 120 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" |
| 121 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" | 121 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" |
| 122 #include "chrome/browser/ui/webui/chromeos/emulator/device_emulator_ui.h" | |
| 122 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_ui.h" | 123 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_ui.h" |
| 123 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" | 124 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" |
| 124 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" | 125 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" |
| 125 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" | 126 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
| 126 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" | 127 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" |
| 127 #include "chrome/browser/ui/webui/chromeos/network_ui.h" | 128 #include "chrome/browser/ui/webui/chromeos/network_ui.h" |
| 128 #include "chrome/browser/ui/webui/chromeos/nfc_debug_ui.h" | 129 #include "chrome/browser/ui/webui/chromeos/nfc_debug_ui.h" |
| 129 #include "chrome/browser/ui/webui/chromeos/power_ui.h" | 130 #include "chrome/browser/ui/webui/chromeos/power_ui.h" |
| 130 #include "chrome/browser/ui/webui/chromeos/provided_file_systems_ui.h" | 131 #include "chrome/browser/ui/webui/chromeos/provided_file_systems_ui.h" |
| 131 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" | 132 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 429 return &NewWebUI<SetAsDefaultBrowserUI>; | 430 return &NewWebUI<SetAsDefaultBrowserUI>; |
| 430 #endif | 431 #endif |
| 431 #if defined(OS_CHROMEOS) | 432 #if defined(OS_CHROMEOS) |
| 432 if (url.host() == chrome::kChromeUIBluetoothPairingHost) | 433 if (url.host() == chrome::kChromeUIBluetoothPairingHost) |
| 433 return &NewWebUI<chromeos::BluetoothPairingUI>; | 434 return &NewWebUI<chromeos::BluetoothPairingUI>; |
| 434 if (url.host() == chrome::kChromeUICertificateManagerHost) | 435 if (url.host() == chrome::kChromeUICertificateManagerHost) |
| 435 return &NewWebUI<chromeos::CertificateManagerDialogUI>; | 436 return &NewWebUI<chromeos::CertificateManagerDialogUI>; |
| 436 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) | 437 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) |
| 437 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; | 438 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; |
| 438 if (url.host() == chrome::kChromeUICryptohomeHost) | 439 if (url.host() == chrome::kChromeUICryptohomeHost) |
| 439 return &NewWebUI<chromeos::CryptohomeUI>; | 440 return &NewWebUI<chromeos::CryptohomeUI>; |
|
oshima
2015/06/24 22:33:55
Can you enable this only when running on Linux Des
rfrappier
2015/06/24 23:22:27
So I basically just need to check
if (!IsRunning
| |
| 441 if (url.host() == chrome::kChromeUIDeviceEmulatorHost) | |
| 442 return &NewWebUI<chromeos::DeviceEmulatorUI>; | |
| 440 if (url.host() == chrome::kChromeUIDriveInternalsHost) | 443 if (url.host() == chrome::kChromeUIDriveInternalsHost) |
| 441 return &NewWebUI<chromeos::DriveInternalsUI>; | 444 return &NewWebUI<chromeos::DriveInternalsUI>; |
| 442 if (url.host() == chrome::kChromeUIImageBurnerHost) | 445 if (url.host() == chrome::kChromeUIImageBurnerHost) |
| 443 return &NewWebUI<ImageBurnUI>; | 446 return &NewWebUI<ImageBurnUI>; |
| 444 if (url.host() == chrome::kChromeUIFirstRunHost) | 447 if (url.host() == chrome::kChromeUIFirstRunHost) |
| 445 return &NewWebUI<chromeos::FirstRunUI>; | 448 return &NewWebUI<chromeos::FirstRunUI>; |
| 446 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) | 449 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) |
| 447 return &NewWebUI<KeyboardOverlayUI>; | 450 return &NewWebUI<KeyboardOverlayUI>; |
| 448 if (url.host() == chrome::kChromeUIMobileSetupHost) | 451 if (url.host() == chrome::kChromeUIMobileSetupHost) |
| 449 return &NewWebUI<MobileSetupUI>; | 452 return &NewWebUI<MobileSetupUI>; |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 757 #endif | 760 #endif |
| 758 | 761 |
| 759 // Android doesn't use the plugins pages. | 762 // Android doesn't use the plugins pages. |
| 760 if (page_url.host() == chrome::kChromeUIPluginsHost) | 763 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 761 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 764 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
| 762 | 765 |
| 763 #endif | 766 #endif |
| 764 | 767 |
| 765 return NULL; | 768 return NULL; |
| 766 } | 769 } |
| OLD | NEW |