| OLD | NEW | 
|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include "chrome/browser/chromeos/policy/device_local_account_extension_tracker.
    h" | 5 #include "chrome/browser/chromeos/policy/device_local_account_extension_tracker.
    h" | 
| 6 | 6 | 
| 7 #include "base/logging.h" | 7 #include "base/logging.h" | 
| 8 #include "base/prefs/pref_value_map.h" |  | 
| 9 #include "base/values.h" | 8 #include "base/values.h" | 
| 10 #include "chrome/browser/chromeos/policy/device_local_account.h" | 9 #include "chrome/browser/chromeos/policy/device_local_account.h" | 
| 11 #include "chrome/browser/extensions/policy_handlers.h" | 10 #include "chrome/browser/extensions/policy_handlers.h" | 
| 12 #include "components/policy/core/common/policy_map.h" | 11 #include "components/policy/core/common/policy_map.h" | 
| 13 #include "components/policy/core/common/policy_namespace.h" | 12 #include "components/policy/core/common/policy_namespace.h" | 
| 14 #include "components/policy/core/common/schema.h" | 13 #include "components/policy/core/common/schema.h" | 
| 15 #include "components/policy/core/common/schema_map.h" | 14 #include "components/policy/core/common/schema_map.h" | 
| 16 #include "components/policy/core/common/schema_registry.h" | 15 #include "components/policy/core/common/schema_registry.h" | 
|  | 16 #include "components/prefs/pref_value_map.h" | 
| 17 #include "extensions/browser/pref_names.h" | 17 #include "extensions/browser/pref_names.h" | 
| 18 | 18 | 
| 19 namespace policy { | 19 namespace policy { | 
| 20 | 20 | 
| 21 DeviceLocalAccountExtensionTracker::DeviceLocalAccountExtensionTracker( | 21 DeviceLocalAccountExtensionTracker::DeviceLocalAccountExtensionTracker( | 
| 22     const DeviceLocalAccount& account, | 22     const DeviceLocalAccount& account, | 
| 23     CloudPolicyStore* store, | 23     CloudPolicyStore* store, | 
| 24     SchemaRegistry* schema_registry) | 24     SchemaRegistry* schema_registry) | 
| 25     : store_(store), | 25     : store_(store), | 
| 26       schema_registry_(schema_registry) { | 26       schema_registry_(schema_registry) { | 
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 88     } | 88     } | 
| 89     schema_registry_->RegisterComponent(ns, Schema()); | 89     schema_registry_->RegisterComponent(ns, Schema()); | 
| 90   } | 90   } | 
| 91 | 91 | 
| 92   // Removing an extension from a public session at runtime can happen but is | 92   // Removing an extension from a public session at runtime can happen but is | 
| 93   // a rare event. In that case we leave the extension ID in the SchemaRegistry, | 93   // a rare event. In that case we leave the extension ID in the SchemaRegistry, | 
| 94   // and it will be purged on the next restart. | 94   // and it will be purged on the next restart. | 
| 95 } | 95 } | 
| 96 | 96 | 
| 97 }  // namespace policy | 97 }  // namespace policy | 
| OLD | NEW | 
|---|