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

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

Issue 2943093002: Add internals page for DICE (Closed)
Patch Set: Fix compile on Android and ChromeOS 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
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..a16d6a9ede07dc29e20825797a853de35bce9fae 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 availble on Windows, Linux and macOS.
Bernhard Bauer 2017/06/16 14:16:08 Nit: "available".
msarda 2017/06/20 10:16:44 Done.
+ if (url.host() == chrome::kChromeUISigninDiceInternalsHost &&
+ !profile->IsOffTheRecord() &&
+ switches::IsAccountConsistencyDiceEnabled()) {
+ return &NewWebUI<SigninDiceInternalsUI>;
+ }
#endif // defined(OS_CHROMEOS)
// Bookmarks are part of NTP on Android.

Powered by Google App Engine
This is Rietveld 408576698