Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2643)

Unified Diff: chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc

Issue 2943093002: Add internals page for DICE (Closed)
Patch Set: Fix compile error Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/webui/signin/signin_dice_internals_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
diff --git a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
index 8b8d0b371db761dce952ffa4ae3681ce6f13ca1b..fbdc0bce9fecfc4291d13fb6a83a306df7dccf35 100644
--- a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
+++ b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
@@ -162,6 +162,7 @@
#include "chrome/browser/ui/sync/sync_promo_ui.h"
#include "chrome/browser/ui/webui/signin/inline_login_ui.h"
#include "chrome/browser/ui/webui/signin/md_user_manager_ui.h"
+#include "chrome/browser/ui/webui/signin/signin_dice_internals_ui.h"
#include "chrome/browser/ui/webui/signin/signin_email_confirmation_ui.h"
#include "chrome/browser/ui/webui/signin/signin_error_ui.h"
#include "chrome/browser/ui/webui/signin/sync_confirmation_ui.h"
@@ -396,6 +397,12 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui,
extensions::ExtensionSystem::Get(profile)->extension_service()) {
return &NewWebUI<AppLauncherPageUI>;
}
+ // Desktop Identity Consistency is only available on Windows, Linux and macOS.
+ if (url.host() == chrome::kChromeUISigninDiceInternalsHost &&
+ !profile->IsOffTheRecord() &&
+ switches::IsAccountConsistencyDiceEnabled()) {
+ return &NewWebUI<SigninDiceInternalsUI>;
+ }
#endif // defined(OS_CHROMEOS)
// Bookmarks are part of NTP on Android.
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/webui/signin/signin_dice_internals_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698