blob: 0b0a8c2ef15409a5ffed72d05f6dd22a13403326 [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
Ella Ge94b6e422020-12-21 23:40:4010void VersionUpdaterBasic::CheckForUpdate(StatusCallback status_callback,
11 const PromoteCallback&) {
Greg Thompson8bcd799b2018-08-10 09:49:3312 const Status status = UpgradeDetector::GetInstance()->notify_upgrade()
13 ? NEARLY_UPDATED
14 : DISABLED;
Miriam Polzerb0c11f032020-05-25 07:38:3115 status_callback.Run(status, 0, false, false, std::string(), 0,
16 base::string16());
[email protected]ea4d1c8742012-06-13 03:51:5517}
18
grtb69e31e2015-05-14 21:55:3519VersionUpdater* VersionUpdater::Create(content::WebContents* web_contents) {
[email protected]ea4d1c8742012-06-13 03:51:5520 return new VersionUpdaterBasic;
21}