Preparation to convert GetPrimaryAccount to return CoreAccountInfo

Change client code to work as if IdentityManager::GetPrimaryAccount
where returning a CoreAccountInfo instead of an AccountInfo. Method
will be updated in a followup CL.

This CL was uploaded by git cl split.

Bug: 926204
Change-Id: I47029452e7ba945171090d9fe9de065e5c0da83c
Auto-Submit: Sylvain Defresne <>
Reviewed-by: David Roger <>
Commit-Queue: David Roger <>
Cr-Commit-Position: refs/heads/master@{#631798}
diff --git a/ios/chrome/browser/browser_state/ b/ios/chrome/browser/browser_state/
index c64c504..0064f15 100644
--- a/ios/chrome/browser/browser_state/
+++ b/ios/chrome/browser/browser_state/
@@ -226,7 +226,7 @@
   identity::IdentityManager* identity_manager =
-  AccountInfo account_info = identity_manager->GetPrimaryAccountInfo();
+  CoreAccountInfo account_info = identity_manager->GetPrimaryAccountInfo();
   base::string16 username = base::UTF8ToUTF16(;
   size_t browser_state_index =