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