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