| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 #endif | 155 #endif |
| 156 | 156 |
| 157 #if !defined(OS_CHROMEOS) | 157 #if !defined(OS_CHROMEOS) |
| 158 #include "chrome/browser/ui/webui/app_launcher_page_ui.h" | 158 #include "chrome/browser/ui/webui/app_launcher_page_ui.h" |
| 159 #endif | 159 #endif |
| 160 | 160 |
| 161 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) | 161 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) |
| 162 #include "chrome/browser/ui/sync/sync_promo_ui.h" | 162 #include "chrome/browser/ui/sync/sync_promo_ui.h" |
| 163 #include "chrome/browser/ui/webui/signin/inline_login_ui.h" | 163 #include "chrome/browser/ui/webui/signin/inline_login_ui.h" |
| 164 #include "chrome/browser/ui/webui/signin/md_user_manager_ui.h" | 164 #include "chrome/browser/ui/webui/signin/md_user_manager_ui.h" |
| 165 #include "chrome/browser/ui/webui/signin/signin_dice_internals_ui.h" |
| 165 #include "chrome/browser/ui/webui/signin/signin_email_confirmation_ui.h" | 166 #include "chrome/browser/ui/webui/signin/signin_email_confirmation_ui.h" |
| 166 #include "chrome/browser/ui/webui/signin/signin_error_ui.h" | 167 #include "chrome/browser/ui/webui/signin/signin_error_ui.h" |
| 167 #include "chrome/browser/ui/webui/signin/sync_confirmation_ui.h" | 168 #include "chrome/browser/ui/webui/signin/sync_confirmation_ui.h" |
| 168 #include "chrome/browser/ui/webui/welcome_ui.h" | 169 #include "chrome/browser/ui/webui/welcome_ui.h" |
| 169 #endif | 170 #endif |
| 170 | 171 |
| 171 #if defined(OS_WIN) | 172 #if defined(OS_WIN) |
| 172 #include "chrome/browser/ui/webui/conflicts_ui.h" | 173 #include "chrome/browser/ui/webui/conflicts_ui.h" |
| 173 #include "chrome/browser/ui/webui/set_as_default_browser_ui_win.h" | 174 #include "chrome/browser/ui/webui/set_as_default_browser_ui_win.h" |
| 174 #include "chrome/browser/ui/webui/welcome_win10_ui.h" | 175 #include "chrome/browser/ui/webui/welcome_win10_ui.h" |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 if (url.host_piece() == chrome::kChromeUIPhysicalWebHost) | 359 if (url.host_piece() == chrome::kChromeUIPhysicalWebHost) |
| 359 return &NewWebUI<PhysicalWebUI>; | 360 return &NewWebUI<PhysicalWebUI>; |
| 360 if (url.host_piece() == chrome::kChromeUIPredictorsHost) | 361 if (url.host_piece() == chrome::kChromeUIPredictorsHost) |
| 361 return &NewWebUI<PredictorsUI>; | 362 return &NewWebUI<PredictorsUI>; |
| 362 if (url.host_piece() == chrome::kChromeUIProfilerHost) | 363 if (url.host_piece() == chrome::kChromeUIProfilerHost) |
| 363 return &NewWebUI<ProfilerUI>; | 364 return &NewWebUI<ProfilerUI>; |
| 364 if (url.host() == chrome::kChromeUIQuotaInternalsHost) | 365 if (url.host() == chrome::kChromeUIQuotaInternalsHost) |
| 365 return &NewWebUI<QuotaInternalsUI>; | 366 return &NewWebUI<QuotaInternalsUI>; |
| 366 if (url.host() == chrome::kChromeUISignInInternalsHost) | 367 if (url.host() == chrome::kChromeUISignInInternalsHost) |
| 367 return &NewWebUI<SignInInternalsUI>; | 368 return &NewWebUI<SignInInternalsUI>; |
| 369 if (url.host() == chrome::kChromeUISigninDiceInternalsHost && |
| 370 !profile->IsOffTheRecord() && |
| 371 switches::IsAccountConsistencyDiceEnabled()) { |
| 372 return &NewWebUI<SigninDiceInternalsUI>; |
| 373 } |
| 368 if (url.host_piece() == chrome::kChromeUISuggestionsHost) | 374 if (url.host_piece() == chrome::kChromeUISuggestionsHost) |
| 369 return &NewWebUI<suggestions::SuggestionsUI>; | 375 return &NewWebUI<suggestions::SuggestionsUI>; |
| 370 if (url.host_piece() == chrome::kChromeUISupervisedUserInternalsHost) | 376 if (url.host_piece() == chrome::kChromeUISupervisedUserInternalsHost) |
| 371 return &NewWebUI<SupervisedUserInternalsUI>; | 377 return &NewWebUI<SupervisedUserInternalsUI>; |
| 372 if (url.host_piece() == chrome::kChromeUISupervisedUserPassphrasePageHost) | 378 if (url.host_piece() == chrome::kChromeUISupervisedUserPassphrasePageHost) |
| 373 return &NewWebUI<ConstrainedWebDialogUI>; | 379 return &NewWebUI<ConstrainedWebDialogUI>; |
| 374 if (url.host_piece() == chrome::kChromeUISyncInternalsHost) | 380 if (url.host_piece() == chrome::kChromeUISyncInternalsHost) |
| 375 return &NewWebUI<SyncInternalsUI>; | 381 return &NewWebUI<SyncInternalsUI>; |
| 376 if (url.host_piece() == chrome::kChromeUISyncResourcesHost) | 382 if (url.host_piece() == chrome::kChromeUISyncResourcesHost) |
| 377 return &NewWebUI<WebDialogUI>; | 383 return &NewWebUI<WebDialogUI>; |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 793 | 799 |
| 794 #if BUILDFLAG(ENABLE_EXTENSIONS) | 800 #if BUILDFLAG(ENABLE_EXTENSIONS) |
| 795 if (page_url.host_piece() == chrome::kChromeUIExtensionsHost || | 801 if (page_url.host_piece() == chrome::kChromeUIExtensionsHost || |
| 796 page_url.host_piece() == chrome::kChromeUIExtensionsFrameHost) | 802 page_url.host_piece() == chrome::kChromeUIExtensionsFrameHost) |
| 797 return extensions::ExtensionsUI::GetFaviconResourceBytes(scale_factor); | 803 return extensions::ExtensionsUI::GetFaviconResourceBytes(scale_factor); |
| 798 #endif // BUILDFLAG(ENABLE_EXTENSIONS) | 804 #endif // BUILDFLAG(ENABLE_EXTENSIONS) |
| 799 #endif // !defined(OS_ANDROID) | 805 #endif // !defined(OS_ANDROID) |
| 800 | 806 |
| 801 return NULL; | 807 return NULL; |
| 802 } | 808 } |
| OLD | NEW |