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 "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 333 if (url.host() == chrome::kChromeUIConflictsHost) | 333 if (url.host() == chrome::kChromeUIConflictsHost) |
| 334 return &NewWebUI<ConflictsUI>; | 334 return &NewWebUI<ConflictsUI>; |
| 335 if (url.host() == chrome::kChromeUIMetroFlowHost) | 335 if (url.host() == chrome::kChromeUIMetroFlowHost) |
| 336 return &NewWebUI<SetAsDefaultBrowserUI>; | 336 return &NewWebUI<SetAsDefaultBrowserUI>; |
| 337 #endif | 337 #endif |
| 338 #if (defined(USE_NSS) || defined(USE_OPENSSL)) && defined(USE_AURA) | 338 #if (defined(USE_NSS) || defined(USE_OPENSSL)) && defined(USE_AURA) |
| 339 if (url.host() == chrome::kChromeUICertificateViewerHost) | 339 if (url.host() == chrome::kChromeUICertificateViewerHost) |
| 340 return &NewWebUI<CertificateViewerUI>; | 340 return &NewWebUI<CertificateViewerUI>; |
| 341 #endif | 341 #endif |
| 342 #if defined(OS_CHROMEOS) | 342 #if defined(OS_CHROMEOS) |
| 343 if (url.host() == chrome::kChromeUIAppLaunchHost) | |
|
xiyuan
2013/08/15 18:19:42
nit: Don't forget to remove kChromeUIAppLaunchHost
Tim Song
2013/08/16 19:07:59
Done. Nice catch. I also forgot to remove app_laun
| |
| 344 return &NewWebUI<chromeos::AppLaunchUI>; | |
| 345 if (url.host() == chrome::kChromeUIBluetoothPairingHost) | 343 if (url.host() == chrome::kChromeUIBluetoothPairingHost) |
| 346 return &NewWebUI<chromeos::BluetoothPairingUI>; | 344 return &NewWebUI<chromeos::BluetoothPairingUI>; |
| 347 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) | 345 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) |
| 348 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; | 346 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; |
| 349 if (url.host() == chrome::kChromeUICryptohomeHost) | 347 if (url.host() == chrome::kChromeUICryptohomeHost) |
| 350 return &NewWebUI<chromeos::CryptohomeUI>; | 348 return &NewWebUI<chromeos::CryptohomeUI>; |
| 351 if (url.host() == chrome::kChromeUIDriveInternalsHost) | 349 if (url.host() == chrome::kChromeUIDriveInternalsHost) |
| 352 return &NewWebUI<chromeos::DriveInternalsUI>; | 350 return &NewWebUI<chromeos::DriveInternalsUI>; |
| 353 if (url.host() == chrome::kChromeUIDiagnosticsHost) | 351 if (url.host() == chrome::kChromeUIDiagnosticsHost) |
| 354 return &NewWebUI<chromeos::DiagnosticsUI>; | 352 return &NewWebUI<chromeos::DiagnosticsUI>; |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 607 return extensions::ExtensionsUI::GetFaviconResourceBytes(scale_factor); | 605 return extensions::ExtensionsUI::GetFaviconResourceBytes(scale_factor); |
| 608 #endif | 606 #endif |
| 609 | 607 |
| 610 // Android doesn't use the plugins pages. | 608 // Android doesn't use the plugins pages. |
| 611 if (page_url.host() == chrome::kChromeUIPluginsHost) | 609 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 612 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 610 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
| 613 #endif | 611 #endif |
| 614 | 612 |
| 615 return NULL; | 613 return NULL; |
| 616 } | 614 } |
| OLD | NEW |