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

Unified Diff: chrome/browser/policy/profile_policy_connector_factory.cc

Issue 2729093002: Fix crash during sync load of the signin profile (Closed)
Patch Set: Created 3 years, 10 months 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/policy/profile_policy_connector_factory.cc
diff --git a/chrome/browser/policy/profile_policy_connector_factory.cc b/chrome/browser/policy/profile_policy_connector_factory.cc
index 149c79abb9f422eed61afc62f472c1d789d319f2..3a808a447646d39217898a404a106437a61e163f 100644
--- a/chrome/browser/policy/profile_policy_connector_factory.cc
+++ b/chrome/browser/policy/profile_policy_connector_factory.cc
@@ -110,17 +110,7 @@ ProfilePolicyConnectorFactory::CreateForBrowserContextInternal(
#if defined(OS_CHROMEOS)
Profile* const profile = Profile::FromBrowserContext(context);
- if (chromeos::ProfileHelper::IsSigninProfile(profile)) {
- policy::DeviceCloudPolicyManagerChromeOS* device_cloud_policy_manager =
- g_browser_process->platform_part()
- ->browser_policy_connector_chromeos()
- ->GetDeviceCloudPolicyManager();
- // TODO(tnagel): Do we need to do something for Active Directory management?
- if (device_cloud_policy_manager) {
- device_cloud_policy_manager->SetSigninProfileSchemaRegistry(
- schema_registry);
- }
- } else {
+ if (!chromeos::ProfileHelper::IsSigninProfile(profile)) {
user = chromeos::ProfileHelper::Get()->GetUserByProfile(profile);
CHECK(user);
}

Powered by Google App Engine
This is Rietveld 408576698