diff options
author | sorin <sorin@chromium.org> | 2015-04-17 10:15:03 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-17 17:15:46 +0000 |
commit | 9797abaa5b60464ee061ef0b55237e6f7a13d3dd (patch) | |
tree | cf43abf0ef5720ec2390f9dbe967145a1fed2a5b /components/component_updater/default_component_installer.cc | |
parent | 18131163ea9d46318299081666150a2c26442009 (diff) | |
download | chromium_src-9797abaa5b60464ee061ef0b55237e6f7a13d3dd.zip chromium_src-9797abaa5b60464ee061ef0b55237e6f7a13d3dd.tar.gz chromium_src-9797abaa5b60464ee061ef0b55237e6f7a13d3dd.tar.bz2 |
Implement common code for component and extension updaters.
The changes not under update_client are mechanical.
This change creates a working UpdateClient updater client, which can be reused by both component and extension updaters.
This code is not hooked up yet with any of the updaters above.
Those changes will be committed in the near future by other CLs.
R=waffles,erikwright,agl,dgarrett,jhawkins,brettw
BUG=450337
Committed: https://crrev.com/ba6742df55de47568e3aa438378d844a7439c391
Cr-Commit-Position: refs/heads/master@{#325006}
Review URL: https://codereview.chromium.org/1055903003
Cr-Commit-Position: refs/heads/master@{#325658}
Diffstat (limited to 'components/component_updater/default_component_installer.cc')
-rw-r--r-- | components/component_updater/default_component_installer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/component_updater/default_component_installer.cc b/components/component_updater/default_component_installer.cc index d430863..36844fb 100644 --- a/components/component_updater/default_component_installer.cc +++ b/components/component_updater/default_component_installer.cc @@ -249,8 +249,8 @@ void DefaultComponentInstaller::FinishRegistration( crx.fingerprint = current_fingerprint_; installer_traits_->GetHash(&crx.pk_hash); ComponentUpdateService::Status status = cus->RegisterComponent(crx); - if (status != ComponentUpdateService::kOk && - status != ComponentUpdateService::kReplaced) { + if (status != ComponentUpdateService::Status::kOk && + status != ComponentUpdateService::Status::kReplaced) { NOTREACHED() << "Component registration failed for " << installer_traits_->GetName(); return; |