| 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 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 // extensions aren't supported. | 539 // extensions aren't supported. |
| 540 if (url.host_piece() == chrome::kChromeUIInspectHost) | 540 if (url.host_piece() == chrome::kChromeUIInspectHost) |
| 541 return &NewWebUI<InspectUI>; | 541 return &NewWebUI<InspectUI>; |
| 542 #endif | 542 #endif |
| 543 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) | 543 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) |
| 544 if (url.host_piece() == chrome::kChromeUIChromeSigninHost) | 544 if (url.host_piece() == chrome::kChromeUIChromeSigninHost) |
| 545 return &NewWebUI<InlineLoginUI>; | 545 return &NewWebUI<InlineLoginUI>; |
| 546 if (url.host_piece() == chrome::kChromeUIMdUserManagerHost) | 546 if (url.host_piece() == chrome::kChromeUIMdUserManagerHost) |
| 547 return &NewWebUI<MDUserManagerUI>; | 547 return &NewWebUI<MDUserManagerUI>; |
| 548 if (url.host_piece() == chrome::kChromeUISigninErrorHost && | 548 if (url.host_piece() == chrome::kChromeUISigninErrorHost && |
| 549 !profile->IsOffTheRecord()) | 549 (!profile->IsOffTheRecord() || |
| 550 profile->GetOriginalProfile()->IsSystemProfile())) |
| 550 return &NewWebUI<SigninErrorUI>; | 551 return &NewWebUI<SigninErrorUI>; |
| 551 if (url.host_piece() == chrome::kChromeUISyncConfirmationHost && | 552 if (url.host_piece() == chrome::kChromeUISyncConfirmationHost && |
| 552 !profile->IsOffTheRecord()) | 553 !profile->IsOffTheRecord()) |
| 553 return &NewWebUI<SyncConfirmationUI>; | 554 return &NewWebUI<SyncConfirmationUI>; |
| 554 if (url.host_piece() == chrome::kChromeUISigninEmailConfirmationHost && | 555 if (url.host_piece() == chrome::kChromeUISigninEmailConfirmationHost && |
| 555 !profile->IsOffTheRecord()) | 556 !profile->IsOffTheRecord()) |
| 556 return &NewWebUI<SigninEmailConfirmationUI>; | 557 return &NewWebUI<SigninEmailConfirmationUI>; |
| 557 if (url.host_piece() == chrome::kChromeUIWelcomeHost) | 558 if (url.host_piece() == chrome::kChromeUIWelcomeHost) |
| 558 return &NewWebUI<WelcomeUI>; | 559 return &NewWebUI<WelcomeUI>; |
| 559 #endif | 560 #endif |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 823 | 824 |
| 824 #if BUILDFLAG(ENABLE_EXTENSIONS) | 825 #if BUILDFLAG(ENABLE_EXTENSIONS) |
| 825 if (page_url.host_piece() == chrome::kChromeUIExtensionsHost || | 826 if (page_url.host_piece() == chrome::kChromeUIExtensionsHost || |
| 826 page_url.host_piece() == chrome::kChromeUIExtensionsFrameHost) | 827 page_url.host_piece() == chrome::kChromeUIExtensionsFrameHost) |
| 827 return extensions::ExtensionsUI::GetFaviconResourceBytes(scale_factor); | 828 return extensions::ExtensionsUI::GetFaviconResourceBytes(scale_factor); |
| 828 #endif // BUILDFLAG(ENABLE_EXTENSIONS) | 829 #endif // BUILDFLAG(ENABLE_EXTENSIONS) |
| 829 #endif // !defined(OS_ANDROID) | 830 #endif // !defined(OS_ANDROID) |
| 830 | 831 |
| 831 return NULL; | 832 return NULL; |
| 832 } | 833 } |
| OLD | NEW |