| Index: components/update_client/action_wait.cc
|
| diff --git a/components/update_client/action_wait.cc b/components/update_client/action_wait.cc
|
| index a4fddefb89c79a85ddb015ec63bd5f6d7629e194..45159d35a1f6120d538ff067c941a7eb43d8d63c 100644
|
| --- a/components/update_client/action_wait.cc
|
| +++ b/components/update_client/action_wait.cc
|
| @@ -37,13 +37,10 @@ void ActionWait::Run(UpdateContext* update_context, Callback callback) {
|
| // completed with an error.
|
| while (!update_context->queue.empty()) {
|
| auto* item = FindUpdateItemById(update_context->queue.front());
|
| - if (!item) {
|
| - item->error_category = static_cast<int>(ErrorCategory::kServiceError);
|
| - item->error_code = static_cast<int>(ServiceError::ERROR_WAIT);
|
| - ChangeItemState(item, CrxUpdateItem::State::kNoUpdate);
|
| - } else {
|
| - NOTREACHED();
|
| - }
|
| + DCHECK(item);
|
| + item->error_category = static_cast<int>(ErrorCategory::kServiceError);
|
| + item->error_code = static_cast<int>(ServiceError::ERROR_WAIT);
|
| + ChangeItemState(item, CrxUpdateItem::State::kNoUpdate);
|
| update_context->queue.pop();
|
| }
|
| callback.Run(static_cast<int>(ServiceError::ERROR_WAIT));
|
|
|