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

Unified Diff: chrome/browser/chromeos/policy/affiliated_invalidation_service_provider_impl.cc

Issue 1306183007: Switch to id-based affiliation determination (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 1 month 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/chromeos/policy/affiliated_invalidation_service_provider_impl.cc
diff --git a/chrome/browser/chromeos/policy/affiliated_invalidation_service_provider_impl.cc b/chrome/browser/chromeos/policy/affiliated_invalidation_service_provider_impl.cc
index 1c81969b4b46eeefd88f8d6bd55352e283ea68b5..672a6deaaf69687922ab97f10cc7fa7356b50dbe 100644
--- a/chrome/browser/chromeos/policy/affiliated_invalidation_service_provider_impl.cc
+++ b/chrome/browser/chromeos/policy/affiliated_invalidation_service_provider_impl.cc
@@ -156,11 +156,9 @@ void AffiliatedInvalidationServiceProviderImpl::Observe(
}
const user_manager::User* user =
chromeos::ProfileHelper::Get()->GetUserByProfile(profile);
- if (!user ||
- g_browser_process->platform_part()->browser_policy_connector_chromeos()->
- GetUserAffiliation(user->email()) != USER_AFFILIATION_MANAGED) {
- // If the Profile belongs to a user who is not affiliated with the device's
- // enrollment domain, ignore it.
+ if (!user || !user->is_affiliated()) {
+ // If the Profile belongs to a user who is not affiliated on the device,
+ // ignore it.
return;
}

Powered by Google App Engine
This is Rietveld 408576698