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

Unified Diff: components/component_updater/default_component_installer.cc

Issue 2056773002: Make ap effective. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698