[ntp modules] Add hide and restore behavior to Microsoft Auth module.

1. Sets up handler + mojo for the Microsoft Auth module.
2. Adds ability to hide module via its header and restore it via
a toast that appears in the bottom left corner of the NTP.

Logic to resurface the module after 12 hours will be addressed in
a follow up CL.

Change-Id: I38125a3ac6b729a3711c899589c5da372c6843f0
Bug: 377378212
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6055265
Code-Coverage: [email protected] <[email protected]>
Reviewed-by: Dominic Battré <[email protected]>
Reviewed-by: Joe Mason <[email protected]>
Commit-Queue: Paul Adedeji <[email protected]>
Reviewed-by: Riley Tatum <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1394450}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 39ec9e1..f2669c3 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -277,6 +277,7 @@
 #include "chrome/browser/nearby_sharing/common/nearby_share_prefs.h"
 #include "chrome/browser/new_tab_page/modules/file_suggestion/drive_service.h"
 #include "chrome/browser/new_tab_page/modules/safe_browsing/safe_browsing_handler.h"
+#include "chrome/browser/new_tab_page/modules/v2/authentication/microsoft_auth_page_handler.h"
 #include "chrome/browser/new_tab_page/modules/v2/calendar/google_calendar_page_handler.h"
 #include "chrome/browser/new_tab_page/modules/v2/most_relevant_tab_resumption/most_relevant_tab_resumption_page_handler.h"
 #include "chrome/browser/new_tab_page/promos/promo_service.h"
@@ -2172,6 +2173,7 @@
   NtpCustomBackgroundService::RegisterProfilePrefs(registry);
   media_router::RegisterAccessCodeProfilePrefs(registry);
   media_router::RegisterProfilePrefs(registry);
+  MicrosoftAuthPageHandler::RegisterProfilePrefs(registry);
   NewTabPageHandler::RegisterProfilePrefs(registry);
   NewTabPageUI::RegisterProfilePrefs(registry);
   ntp::SafeBrowsingHandler::RegisterProfilePrefs(registry);