Index: components/component_updater/default_component_installer.cc |
diff --git a/components/component_updater/default_component_installer.cc b/components/component_updater/default_component_installer.cc |
index d780064dfc7d6a8a37198b3112404632e79f9145..43fd8722e5fbe698a39268eb0d4d7f83501d9cdd 100644 |
--- a/components/component_updater/default_component_installer.cc |
+++ b/components/component_updater/default_component_installer.cc |
@@ -321,13 +321,14 @@ void DefaultComponentInstaller::FinishRegistration( |
if (installer_traits_->CanAutoUpdate()) { |
CrxComponent crx; |
- crx.name = installer_traits_->GetName(); |
- crx.requires_network_encryption = |
- installer_traits_->RequiresNetworkEncryption(); |
+ installer_traits_->GetHash(&crx.pk_hash); |
crx.installer = this; |
crx.version = current_version_; |
crx.fingerprint = current_fingerprint_; |
- installer_traits_->GetHash(&crx.pk_hash); |
+ crx.name = installer_traits_->GetName(); |
+ crx.ap = installer_traits_->GetAp(); |
+ crx.requires_network_encryption = |
+ installer_traits_->RequiresNetworkEncryption(); |
if (!cus->RegisterComponent(crx)) { |
LOG(ERROR) << "Component registration failed for " |
<< installer_traits_->GetName(); |