blob: c372770f1f1557bbdceedd41e50c2a47b686685f (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
// 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.
#ifndef CHROME_BROWSER_MAC_OBSOLETE_SYSTEM_H_
#define CHROME_BROWSER_MAC_OBSOLETE_SYSTEM_H_
#include "base/basictypes.h"
#include "base/strings/string16.h"
class ObsoleteSystemMac {
public:
// true if 32-bit-only systems are already considered obsolete, or if
// they'll be considered obsolete soon. Used to control whether to show
// messaging about 32-bit deprecation within the app.
static bool Is32BitObsoleteNowOrSoon() {
#if defined(GOOGLE_CHROME_BUILD)
return true;
#else
return false;
#endif
}
// true if the system's CPU is 32-bit-only, false if it's 64-bit-capable.
#if !defined(ARCH_CPU_64_BITS)
static bool Has32BitOnlyCPU();
#else
static bool Has32BitOnlyCPU() {
return false;
}
#endif
// Returns a localized string informing users that their system will either
// soon be unsupported by future versions of the application, or that they
// are already using the last version of the application that supports their
// system. Do not use the returned string unless both
// Is32BitObsoleteNowOrSoon() and Has32BitOnlyCPU() return true.
#if !defined(ARCH_CPU_64_BITS)
static base::string16 LocalizedObsoleteSystemString();
#else
static base::string16 LocalizedObsoleteSystemString() {
return base::string16();
}
#endif
// true if this is the final release that will run on 32-bit-only systems.
static bool Is32BitEndOfTheLine() {
return true;
}
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(ObsoleteSystemMac);
};
#endif // CHROME_BROWSER_MAC_OBSOLETE_SYSTEM_H_
|