Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: chrome/browser/mac/system_bitness.h

Issue 125443002: In-app messaging to communicate the imminent 32-bit deprecation to 32-bit-only users (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 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 #ifndef CHROME_BROWSER_MAC_SYSTEM_BITNESS_H_
6 #define CHROME_BROWSER_MAC_SYSTEM_BITNESS_H_
7
8 #include "base/strings/string16.h"
9 #include "build/build_config.h"
10
11 namespace chrome {
Nico 2014/01/07 00:51:37 I thought stuff in chrome/ isn't in a namespace (?
12
13 // true if 32-bit-only systems are already considered obsolete, or if they'll
14 // be considered obsolete soon. Used to control whether to show messaging
15 // about 32-bit deprecation within the app.
16 inline bool Is32BitObsoleteNowOrSoon() {
17 #if defined(GOOGLE_CHROME_BUILD)
18 return true;
19 #else
20 return false;
21 #endif
22 }
23
24 #if !defined(ARCH_CPU_64_BITS)
25
26 // true if the system's CPU is 32-bit-only, false if it's 64-bit-capable.
27 bool Has32BitOnlyCPU();
28
29 // Returns a localized string informing users that their system will either
30 // soon be unsupported by future versions of the application, or that they are
31 // already using the last version of the application that supports their
32 // system. Do not use the returned string unless Has32BitOnlyCPU() returns
33 // true.
34 base::string16 LocalizedObsoleteSystemString();
35
36 #else
37
38 inline bool Has32BitOnlyCPU() {
39 return false;
40 }
41
42 inline base::string16 LocalizedObsoleteSystemString() {
43 return base::string16();
44 }
45
46 #endif
47
48 // true if this is the final release that will run on 32-bit-only systems.
49 bool Is32BitEndOfTheLine();
50
51 } // namespace chrome
52
53 #endif // CHROME_BROWSER_MAC_SYSTEM_BITNESS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698