blob: 5e6e9df911ad22c7c47d743c3d3a7dc7206ed351 [file] [log] [blame]
Avi Drissman4a8573c2022-09-09 19:35:541// Copyright 2012 The Chromium Authors
[email protected]ea4d1c8742012-06-13 03:51:552// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "chrome/browser/ui/webui/help/version_updater_basic.h"
6
Jan Wilken Dörriead587c32021-03-11 14:09:277#include <string>
8
Greg Thompson8bcd799b2018-08-10 09:49:339#include "chrome/browser/upgrade_detector/upgrade_detector.h"
[email protected]ea4d1c8742012-06-13 03:51:5510
Ella Ge94b6e422020-12-21 23:40:4011void VersionUpdaterBasic::CheckForUpdate(StatusCallback status_callback,
Ella Ge11297512020-12-28 23:20:3912 PromoteCallback) {
Roman Arorae47ed8922022-03-09 17:56:0713 const Status status = UpgradeDetector::GetInstance()->is_upgrade_available()
Greg Thompson8bcd799b2018-08-10 09:49:3314 ? NEARLY_UPDATED
15 : DISABLED;
Miriam Polzerb0c11f032020-05-25 07:38:3116 status_callback.Run(status, 0, false, false, std::string(), 0,
Jan Wilken Dörrie3f97e292021-03-11 18:07:1417 std::u16string());
[email protected]ea4d1c8742012-06-13 03:51:5518}
19
grtb69e31e2015-05-14 21:55:3520VersionUpdater* VersionUpdater::Create(content::WebContents* web_contents) {
[email protected]ea4d1c8742012-06-13 03:51:5521 return new VersionUpdaterBasic;
22}