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

Unified Diff: base/mac/mac_util.mm

Issue 1849343003: mac: Remove IsOSSnowLeopard(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/mac/mac_util.h ('k') | base/mac/mac_util_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mac/mac_util.mm
diff --git a/base/mac/mac_util.mm b/base/mac/mac_util.mm
index 75d53c90961086c6225b352981d181a8d5733524..75ebb8443dde7b4116d5be9baa3f440787eab5bd 100644
--- a/base/mac/mac_util.mm
+++ b/base/mac/mac_util.mm
@@ -358,7 +358,7 @@ bool WasLaunchedAsLoginOrResumeItem() {
bool WasLaunchedAsLoginItemRestoreState() {
// "Reopen windows..." option was added for Lion. Prior OS versions should
// not have this behavior.
- if (IsOSSnowLeopard() || !WasLaunchedAsLoginOrResumeItem())
+ if (!WasLaunchedAsLoginOrResumeItem())
return false;
CFStringRef app = CFSTR("com.apple.loginwindow");
@@ -385,12 +385,7 @@ bool WasLaunchedAsHiddenLoginItem() {
ScopedCFTypeRef<LSSharedFileListItemRef> item(GetLoginItemForApp());
if (!item.get()) {
- // Lion can launch items for the resume feature. So log an error only for
- // Snow Leopard or earlier.
- if (IsOSSnowLeopard())
- DLOG(ERROR) <<
- "Process launched at Login but can't access Login Item List.";
-
+ // OS X can launch items for the resume feature.
return false;
}
return IsHiddenLoginItem(item);
@@ -488,12 +483,6 @@ enum {
} // namespace
-#if !defined(BASE_MAC_MAC_UTIL_H_INLINED_GE_10_7)
-bool IsOSSnowLeopard() {
- return MacOSXMinorVersion() == SNOW_LEOPARD_MINOR_VERSION;
-}
-#endif
-
#if !defined(BASE_MAC_MAC_UTIL_H_INLINED_GT_10_7)
bool IsOSLion() {
return MacOSXMinorVersion() == LION_MINOR_VERSION;
« no previous file with comments | « base/mac/mac_util.h ('k') | base/mac/mac_util_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698