| 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/extensions/extension_system_impl.h" | 5 #include "chrome/browser/extensions/extension_system_impl.h" |
| 6 | 6 |
| 7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 if (user && policy::IsDeviceLocalAccountUser(user->email(), | 131 if (user && policy::IsDeviceLocalAccountUser(user->email(), |
| 132 &device_local_account_type)) { | 132 &device_local_account_type)) { |
| 133 device_local_account_management_policy_provider_.reset( | 133 device_local_account_management_policy_provider_.reset( |
| 134 new chromeos::DeviceLocalAccountManagementPolicyProvider( | 134 new chromeos::DeviceLocalAccountManagementPolicyProvider( |
| 135 device_local_account_type)); | 135 device_local_account_type)); |
| 136 } | 136 } |
| 137 #endif // defined(OS_CHROMEOS) | 137 #endif // defined(OS_CHROMEOS) |
| 138 } | 138 } |
| 139 | 139 |
| 140 void ExtensionSystemImpl::Shared::RegisterManagementPolicyProviders() { | 140 void ExtensionSystemImpl::Shared::RegisterManagementPolicyProviders() { |
| 141 management_policy_->RegisterProvider( | 141 management_policy_->RegisterProviders( |
| 142 ExtensionManagementFactory::GetForBrowserContext(profile_) | 142 ExtensionManagementFactory::GetForBrowserContext(profile_) |
| 143 ->GetProvider()); | 143 ->GetProviders()); |
| 144 | 144 |
| 145 #if defined(OS_CHROMEOS) | 145 #if defined(OS_CHROMEOS) |
| 146 if (device_local_account_management_policy_provider_) { | 146 if (device_local_account_management_policy_provider_) { |
| 147 management_policy_->RegisterProvider( | 147 management_policy_->RegisterProvider( |
| 148 device_local_account_management_policy_provider_.get()); | 148 device_local_account_management_policy_provider_.get()); |
| 149 } | 149 } |
| 150 #endif // defined(OS_CHROMEOS) | 150 #endif // defined(OS_CHROMEOS) |
| 151 | 151 |
| 152 management_policy_->RegisterProvider(install_verifier_.get()); | 152 management_policy_->RegisterProvider(install_verifier_.get()); |
| 153 } | 153 } |
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( | 651 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( |
| 652 const std::string& extension_id, | 652 const std::string& extension_id, |
| 653 const UnloadedExtensionInfo::Reason reason) { | 653 const UnloadedExtensionInfo::Reason reason) { |
| 654 BrowserThread::PostTask( | 654 BrowserThread::PostTask( |
| 655 BrowserThread::IO, | 655 BrowserThread::IO, |
| 656 FROM_HERE, | 656 FROM_HERE, |
| 657 base::Bind(&InfoMap::RemoveExtension, info_map(), extension_id, reason)); | 657 base::Bind(&InfoMap::RemoveExtension, info_map(), extension_id, reason)); |
| 658 } | 658 } |
| 659 | 659 |
| 660 } // namespace extensions | 660 } // namespace extensions |
| OLD | NEW |