| Index: components/update_client/action.cc
|
| diff --git a/components/update_client/action.cc b/components/update_client/action.cc
|
| index 061dd220598e1465037066366f246773856ff328..cb9d738b3ef06c117d30f8fab1b151d9970e7e96 100644
|
| --- a/components/update_client/action.cc
|
| +++ b/components/update_client/action.cc
|
| @@ -127,6 +127,19 @@ void ActionImpl::UpdateCrx() {
|
|
|
| item->update_begin = base::TimeTicks::Now();
|
|
|
| + if (item->component.supports_group_policy_enable_component_updates &&
|
| + !update_context_->config->EnabledComponentUpdates()) {
|
| + item->error_category =
|
| + static_cast<int>(Action::ErrorCategory::kServiceError);
|
| + item->error_code =
|
| + static_cast<int>(Action::ServiceError::ERROR_UPDATE_DISABLED);
|
| + item->extra_code1 = 0;
|
| + ChangeItemState(item, CrxUpdateItem::State::kNoUpdate);
|
| +
|
| + UpdateCrxComplete(item);
|
| + return;
|
| + }
|
| +
|
| std::unique_ptr<Action> update_action(
|
| CanTryDiffUpdate(item, update_context_->config)
|
| ? ActionUpdateDiff::Create()
|
|
|