| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 return nullptr; | 531 return nullptr; |
| 532 return &NewWebUI<DevToolsUI>; | 532 return &NewWebUI<DevToolsUI>; |
| 533 } | 533 } |
| 534 // chrome://inspect isn't supported on Android nor iOS. Page debugging is | 534 // chrome://inspect isn't supported on Android nor iOS. Page debugging is |
| 535 // handled by a remote devtools on the host machine, and other elements, i.e. | 535 // handled by a remote devtools on the host machine, and other elements, i.e. |
| 536 // extensions aren't supported. | 536 // extensions aren't supported. |
| 537 if (url.host_piece() == chrome::kChromeUIInspectHost) | 537 if (url.host_piece() == chrome::kChromeUIInspectHost) |
| 538 return &NewWebUI<InspectUI>; | 538 return &NewWebUI<InspectUI>; |
| 539 #endif | 539 #endif |
| 540 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) | 540 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) |
| 541 if (url.host_piece() == chrome::kChromeUIChromeSigninHost && | 541 if (url.host_piece() == chrome::kChromeUIChromeSigninHost) |
| 542 !profile->IsOffTheRecord()) | |
| 543 return &NewWebUI<InlineLoginUI>; | 542 return &NewWebUI<InlineLoginUI>; |
| 544 if (url.host_piece() == chrome::kChromeUIMdUserManagerHost) | 543 if (url.host_piece() == chrome::kChromeUIMdUserManagerHost) |
| 545 return &NewWebUI<MDUserManagerUI>; | 544 return &NewWebUI<MDUserManagerUI>; |
| 546 if (url.host_piece() == chrome::kChromeUISigninErrorHost && | 545 if (url.host_piece() == chrome::kChromeUISigninErrorHost && |
| 547 !profile->IsOffTheRecord()) | 546 !profile->IsOffTheRecord()) |
| 548 return &NewWebUI<SigninErrorUI>; | 547 return &NewWebUI<SigninErrorUI>; |
| 549 if (url.host_piece() == chrome::kChromeUISyncConfirmationHost && | 548 if (url.host_piece() == chrome::kChromeUISyncConfirmationHost && |
| 550 !profile->IsOffTheRecord()) | 549 !profile->IsOffTheRecord()) |
| 551 return &NewWebUI<SyncConfirmationUI>; | 550 return &NewWebUI<SyncConfirmationUI>; |
| 552 if (url.host_piece() == chrome::kChromeUISigninEmailConfirmationHost && | 551 if (url.host_piece() == chrome::kChromeUISigninEmailConfirmationHost && |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 828 #endif | 827 #endif |
| 829 | 828 |
| 830 // Android doesn't use the plugins pages. | 829 // Android doesn't use the plugins pages. |
| 831 if (page_url.host_piece() == chrome::kChromeUIPluginsHost) | 830 if (page_url.host_piece() == chrome::kChromeUIPluginsHost) |
| 832 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 831 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
| 833 | 832 |
| 834 #endif | 833 #endif |
| 835 | 834 |
| 836 return NULL; | 835 return NULL; |
| 837 } | 836 } |
| OLD | NEW |