blob: 311007cfa1ba0f086c5085d567a2b6c1292e8732 [file] [log] [blame]
// Copyright 2015 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/obsolete_system/obsolete_system.h"
#include "base/cpu.h"
#include "base/win/windows_version.h"
#include "build/build_config.h"
#include "chrome/common/chrome_version.h"
#include "chrome/common/url_constants.h"
#include "chrome/grit/chromium_strings.h"
#include "ui/base/l10n/l10n_util.h"
namespace {
bool IsObsoleteOsVersion() {
return base::win::GetVersion() < base::win::Version::WIN7;
}
} // namespace
// static
bool ObsoleteSystem::IsObsoleteNowOrSoon() {
return IsObsoleteOsVersion();
}
// static
std::u16string ObsoleteSystem::LocalizedObsoleteString() {
return l10n_util::GetStringUTF16(IDS_WIN_XP_VISTA_OBSOLETE);
}
// static
bool ObsoleteSystem::IsEndOfTheLine() {
return true;
}
// static
const char* ObsoleteSystem::GetLinkURL() {
return chrome::kWindowsXPVistaDeprecationURL;
}