summaryrefslogtreecommitdiffstats
path: root/components/component_updater/default_component_installer.cc
diff options
context:
space:
mode:
authorsorin <sorin@chromium.org>2015-04-13 23:49:43 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-14 06:50:09 +0000
commitba6742df55de47568e3aa438378d844a7439c391 (patch)
treed936f0990b12c92fc668f7ec3003822f481d0111 /components/component_updater/default_component_installer.cc
parent60eb6bf1d51acee4721dfd0a89344a62e67de2f1 (diff)
downloadchromium_src-ba6742df55de47568e3aa438378d844a7439c391.zip
chromium_src-ba6742df55de47568e3aa438378d844a7439c391.tar.gz
chromium_src-ba6742df55de47568e3aa438378d844a7439c391.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 Review URL: https://codereview.chromium.org/1055903003 Cr-Commit-Position: refs/heads/master@{#325006}
Diffstat (limited to 'components/component_updater/default_component_installer.cc')
-rw-r--r--components/component_updater/default_component_installer.cc4
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;