blob: a843b38d13a6e5ab85b511e5d02fb0ed52bac8dc [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/webui/help/version_updater_basic.h"
#include <string>
#include "base/strings/string16.h"
#include "chrome/browser/upgrade_detector/upgrade_detector.h"
void VersionUpdaterBasic::CheckForUpdate(StatusCallback status_callback,
PromoteCallback) {
const Status status = UpgradeDetector::GetInstance()->notify_upgrade()
? NEARLY_UPDATED
: DISABLED;
status_callback.Run(status, 0, false, false, std::string(), 0,
base::string16());
}
VersionUpdater* VersionUpdater::Create(content::WebContents* web_contents) {
return new VersionUpdaterBasic;
}