Commit 7fd0b562 authored by Joshua Pawlicki's avatar Joshua Pawlicki Committed by Commit Bot

Updater: Fix CSIP crash.

CSIP was using an UpdateServiceOutOfProcess in practice.

Bug: 1107586
Change-Id: I3915818a8e828fe296cdbd5f3268351f82309a67
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2336954
Commit-Queue: Joshua Pawlicki <waffles@chromium.org>
Commit-Queue: Sorin Jianu <sorin@chromium.org>
Auto-Submit: Joshua Pawlicki <waffles@chromium.org>
Reviewed-by: default avatarSorin Jianu <sorin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#794577}
parent 5fd55582
......@@ -11,7 +11,7 @@
#include "base/time/time.h"
#include "chrome/updater/configurator.h"
#include "chrome/updater/prefs.h"
#include "chrome/updater/update_service.h"
#include "chrome/updater/update_service_in_process.h"
#include "components/prefs/pref_service.h"
namespace updater {
......@@ -32,7 +32,8 @@ void ControlServiceInProcess::Run(base::OnceClosure callback) {
if (timeSinceUpdate >=
base::TimeDelta::FromSeconds(config_->NextCheckDelay()) ||
timeSinceUpdate < base::TimeDelta()) {
scoped_refptr<UpdateService> update_service = CreateUpdateService(config_);
scoped_refptr<UpdateServiceInProcess> update_service =
base::MakeRefCounted<UpdateServiceInProcess>(config_);
update_service->UpdateAll(
base::BindRepeating([](UpdateService::UpdateState) {}),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment