Commit 1f08ab97 authored by Sylvain Defresne's avatar Sylvain Defresne Committed by Commit Bot

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.

Bug: 926204
Change-Id: I0941676744c9e0f277862e5f58999dc3635bd71e
Reviewed-on: https://chromium-review.googlesource.com/c/1482465
Auto-Submit: Sylvain Defresne <sdefresne@chromium.org>
Commit-Queue: Nathan Parker <nparker@chromium.org>
Reviewed-by: default avatarNathan Parker <nparker@chromium.org>
Cr-Commit-Position: refs/heads/master@{#634794}
parent 5aad6e02
...@@ -56,11 +56,11 @@ void AdvancedProtectionStatusManager::Initialize() { ...@@ -56,11 +56,11 @@ void AdvancedProtectionStatusManager::Initialize() {
void AdvancedProtectionStatusManager::MaybeRefreshOnStartUp() { void AdvancedProtectionStatusManager::MaybeRefreshOnStartUp() {
// Retrieves advanced protection service status from primary account's info. // Retrieves advanced protection service status from primary account's info.
AccountInfo info = identity_manager_->GetPrimaryAccountInfo(); CoreAccountInfo core_info = identity_manager_->GetPrimaryAccountInfo();
if (info.account_id.empty()) if (core_info.account_id.empty())
return; return;
is_under_advanced_protection_ = info.is_under_advanced_protection; is_under_advanced_protection_ = core_info.is_under_advanced_protection;
if (profile_->GetPrefs()->HasPrefPath( if (profile_->GetPrefs()->HasPrefPath(
prefs::kAdvancedProtectionLastRefreshInUs)) { prefs::kAdvancedProtectionLastRefreshInUs)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment