| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012 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_UI_COCOA_OBSOLETE_OS_H_ | |
| 6 #define CHROME_BROWSER_UI_COCOA_OBSOLETE_OS_H_ | |
| 7 | |
| 8 #include "base/mac/mac_util.h" | |
| 9 #include "base/string16.h" | |
| 10 | |
| 11 namespace chrome { | |
| 12 | |
| 13 // Returns true if the OS will either be unsupported by future versions of the | |
| 14 // application in the near future, or if this is the last version of the | |
| 15 // application that supports the OS. | |
| 16 inline bool IsOSObsoleteOrNearlySo() { | |
| 17 return base::mac::IsOSLeopardOrEarlier(); | |
| 18 } | |
| 19 | |
| 20 // Returns a localized string informing users that their OS will either soon | |
| 21 // be unsupported by future versions of the application, or that they are | |
| 22 // already using the last version of the application that supports their OS. | |
| 23 // Do not use the returned string unless IsOSObsoleteOrNearlySo() returns | |
| 24 // true. | |
| 25 string16 LocalizedObsoleteOSString(); | |
| 26 | |
| 27 } // namespace chrome | |
| 28 | |
| 29 #endif // CHROME_BROWSER_UI_COCOA_OBSOLETE_OS_H_ | |
| OLD | NEW |