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/ui/cocoa/obsolete_os.h

Issue 10690060: startup: Put it in chrome namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
« no previous file with comments | « chrome/browser/ui/browser_list.h ('k') | chrome/browser/ui/cocoa/obsolete_os.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_COCOA_OBSOLETE_OS_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_OBSOLETE_OS_H_
6 #define CHROME_BROWSER_UI_COCOA_OBSOLETE_OS_H_ 6 #define CHROME_BROWSER_UI_COCOA_OBSOLETE_OS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/mac/mac_util.h" 9 #include "base/mac/mac_util.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
11 11
12 namespace browser { 12 namespace chrome {
13 13
14 // Returns true if the OS will either be unsupported by future versions of the 14 // Returns true if the OS will either be unsupported by future versions of the
15 // application in the near future, or if this is the last version of the 15 // application in the near future, or if this is the last version of the
16 // application that supports the OS. 16 // application that supports the OS.
17 inline bool IsOSObsoleteOrNearlySo() { 17 inline bool IsOSObsoleteOrNearlySo() {
18 return base::mac::IsOSLeopardOrEarlier(); 18 return base::mac::IsOSLeopardOrEarlier();
19 } 19 }
20 20
21 // Returns a localized string informing users that their OS will either soon 21 // Returns a localized string informing users that their OS will either soon
22 // be unsupported by future versions of the application, or that they are 22 // be unsupported by future versions of the application, or that they are
23 // already using the last version of the application that supports their OS. 23 // already using the last version of the application that supports their OS.
24 // Do not use the returned string unless IsOSObsoleteOrNearlySo() returns 24 // Do not use the returned string unless IsOSObsoleteOrNearlySo() returns
25 // true. 25 // true.
26 string16 LocalizedObsoleteOSString(); 26 string16 LocalizedObsoleteOSString();
27 27
28 } // namespace browser 28 } // namespace chrome
29 29
30 #endif // CHROME_BROWSER_UI_COCOA_OBSOLETE_OS_H_ 30 #endif // CHROME_BROWSER_UI_COCOA_OBSOLETE_OS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_list.h ('k') | chrome/browser/ui/cocoa/obsolete_os.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698