blob: 7a9c764e9f2c79d0559856e5cbc335aaaef87668 [file] [log] [blame]
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/upgrade_detector/get_installed_version.h"
#include <utility>
#include "base/functional/callback.h"
#include "base/notreached.h"
#include "components/version_info/version_info.h"
void GetInstalledVersion(InstalledVersionCallback callback) {
// TODO(crbug.com/1318672): Check to see if a different version has been
// installed on the device and is awaiting a restart. For the time being,
// unconditionally return the currently-running version.
NOTIMPLEMENTED_LOG_ONCE();
std::move(callback).Run(
InstalledAndCriticalVersion(version_info::GetVersion()));
}