[s13n] Convert GooglePasswordManagerNavigationThrottleTest to IdentityManager

This CL only migrates GooglePasswordManagerNavigationThrottleTest
production code away from SigninManager.

Bug: 920153
Change-Id: Ibd55b58baf4ec7384989fa4de23dbc636bd17996
Reviewed-on: https://chromium-review.googlesource.com/c/1414532
Reviewed-by: Colin Blundell <[email protected]>
Reviewed-by: Vasilii Sukhanov <[email protected]>
Commit-Queue: Julie Jeongeun Kim <[email protected]>
Cr-Commit-Position: refs/heads/master@{#623223}
diff --git a/chrome/browser/ui/passwords/google_password_manager_navigation_throttle_browsertest.cc b/chrome/browser/ui/passwords/google_password_manager_navigation_throttle_browsertest.cc
index 83be6e4..fbaa21c 100644
--- a/chrome/browser/ui/passwords/google_password_manager_navigation_throttle_browsertest.cc
+++ b/chrome/browser/ui/passwords/google_password_manager_navigation_throttle_browsertest.cc
@@ -24,8 +24,8 @@
 #include "url/url_canon_stdstring.h"
 
 #if defined(OS_CHROMEOS)
-#include "chrome/browser/signin/signin_manager_factory.h"
-#include "components/signin/core/browser/signin_manager_base.h"
+#include "chrome/browser/signin/identity_manager_factory.h"
+#include "services/identity/public/cpp/identity_manager.h"
 #endif
 
 namespace {
@@ -78,10 +78,10 @@
 
     std::string username;
 #if defined(OS_CHROMEOS)
-    // In browser tests, the profile may already by authenticated with stub
+    // In browser tests, the profile may already be authenticated with stub
     // account |user_manager::kStubUserEmail|.
-    AccountInfo info = SigninManagerFactory::GetForProfile(profile)
-                           ->GetAuthenticatedAccountInfo();
+    AccountInfo info =
+        IdentityManagerFactory::GetForProfile(profile)->GetPrimaryAccountInfo();
     username = info.email;
 #endif
     if (username.empty())