Avi Drissman | 4a8573c | 2022-09-09 19:35:54 | [diff] [blame^] | 1 | // Copyright 2012 The Chromium Authors |
[email protected] | ea4d1c874 | 2012-06-13 03:51:55 | [diff] [blame] | 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örrie | ad587c3 | 2021-03-11 14:09:27 | [diff] [blame] | 7 | #include <string> |
8 | |||||
Greg Thompson | 8bcd799b | 2018-08-10 09:49:33 | [diff] [blame] | 9 | #include "chrome/browser/upgrade_detector/upgrade_detector.h" |
[email protected] | ea4d1c874 | 2012-06-13 03:51:55 | [diff] [blame] | 10 | |
Ella Ge | 94b6e42 | 2020-12-21 23:40:40 | [diff] [blame] | 11 | void VersionUpdaterBasic::CheckForUpdate(StatusCallback status_callback, |
Ella Ge | 1129751 | 2020-12-28 23:20:39 | [diff] [blame] | 12 | PromoteCallback) { |
Roman Arora | e47ed892 | 2022-03-09 17:56:07 | [diff] [blame] | 13 | const Status status = UpgradeDetector::GetInstance()->is_upgrade_available() |
Greg Thompson | 8bcd799b | 2018-08-10 09:49:33 | [diff] [blame] | 14 | ? NEARLY_UPDATED |
15 | : DISABLED; | ||||
Miriam Polzer | b0c11f03 | 2020-05-25 07:38:31 | [diff] [blame] | 16 | status_callback.Run(status, 0, false, false, std::string(), 0, |
Jan Wilken Dörrie | 3f97e29 | 2021-03-11 18:07:14 | [diff] [blame] | 17 | std::u16string()); |
[email protected] | ea4d1c874 | 2012-06-13 03:51:55 | [diff] [blame] | 18 | } |
19 | |||||
grt | b69e31e | 2015-05-14 21:55:35 | [diff] [blame] | 20 | VersionUpdater* VersionUpdater::Create(content::WebContents* web_contents) { |
[email protected] | ea4d1c874 | 2012-06-13 03:51:55 | [diff] [blame] | 21 | return new VersionUpdaterBasic; |
22 | } |