blob: a843b38d13a6e5ab85b511e5d02fb0ed52bac8dc [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
Jan Wilken Dörriead587c32021-03-11 14:09:277#include <string>
8
[email protected]e3380852013-06-10 20:11:369#include "base/strings/string16.h"
Greg Thompson8bcd799b2018-08-10 09:49:3310#include "chrome/browser/upgrade_detector/upgrade_detector.h"
[email protected]ea4d1c8742012-06-13 03:51:5511
Ella Ge94b6e422020-12-21 23:40:4012void VersionUpdaterBasic::CheckForUpdate(StatusCallback status_callback,
Ella Ge11297512020-12-28 23:20:3913 PromoteCallback) {
Greg Thompson8bcd799b2018-08-10 09:49:3314 const Status status = UpgradeDetector::GetInstance()->notify_upgrade()
15 ? NEARLY_UPDATED
16 : DISABLED;
Miriam Polzerb0c11f032020-05-25 07:38:3117 status_callback.Run(status, 0, false, false, std::string(), 0,
18 base::string16());
[email protected]ea4d1c8742012-06-13 03:51:5519}
20
grtb69e31e2015-05-14 21:55:3521VersionUpdater* VersionUpdater::Create(content::WebContents* web_contents) {
[email protected]ea4d1c8742012-06-13 03:51:5522 return new VersionUpdaterBasic;
23}