blob: 9c0b4013d34859b237c9e053baf5579f640f32eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// Copyright 2014 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/mac/mac_util.h"
#include "chrome/common/url_constants.h"
#include "chrome/grit/chromium_strings.h"
#include "ui/base/l10n/l10n_util.h"
// static
bool ObsoleteSystem::IsObsoleteNowOrSoon() {
return base::mac::IsOSMountainLionOrEarlier();
}
// static
base::string16 ObsoleteSystem::LocalizedObsoleteString() {
return l10n_util::GetStringUTF16(IsEndOfTheLine()
? IDS_MAC_10_678_OBSOLETE_NOW
: IDS_MAC_10_678_OBSOLETE_SOON);
}
// static
bool ObsoleteSystem::IsEndOfTheLine() {
return false;
}
// static
const char* ObsoleteSystem::GetLinkURL() {
return chrome::kMac10_678_DeprecationURL;
}
|