blob: 2a4c334e2eaaf3b8f54c5246d99d3486f24799e8 [file] [log] [blame]
[email protected]ea4d1c8742012-06-13 03:51:551// Copyright (c) 2012 The Chromium Authors. All rights reserved.
2// 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
[email protected]e3380852013-06-10 20:11:367#include "base/strings/string16.h"
Greg Thompson8bcd799b2018-08-10 09:49:338#include "chrome/browser/upgrade_detector/upgrade_detector.h"
[email protected]ea4d1c8742012-06-13 03:51:559
10void VersionUpdaterBasic::CheckForUpdate(
grtf67763e2016-02-08 16:26:5811 const StatusCallback& status_callback,
12 const PromoteCallback&) {
Greg Thompson8bcd799b2018-08-10 09:49:3313 const Status status = UpgradeDetector::GetInstance()->notify_upgrade()
14 ? NEARLY_UPDATED
15 : DISABLED;
Miriam Polzerb0c11f032020-05-25 07:38:3116 status_callback.Run(status, 0, false, false, std::string(), 0,
17 base::string16());
[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}