| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "base/mac_util.h" | 5 #include "base/mac_util.h" |
| 6 | 6 |
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 | 8 |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 662 return false; | 662 return false; |
| 663 | 663 |
| 664 scoped_cftyperef<LSSharedFileListItemRef> item(GetLoginItemForApp()); | 664 scoped_cftyperef<LSSharedFileListItemRef> item(GetLoginItemForApp()); |
| 665 if (!item.get()) { | 665 if (!item.get()) { |
| 666 LOG(ERROR) << "Process launched at Login but can't access Login Item List."; | 666 LOG(ERROR) << "Process launched at Login but can't access Login Item List."; |
| 667 return false; | 667 return false; |
| 668 } | 668 } |
| 669 return IsHiddenLoginItem(item); | 669 return IsHiddenLoginItem(item); |
| 670 } | 670 } |
| 671 | 671 |
| 672 void NSObjectRetain(void* obj) { |
| 673 id<NSObject> nsobj = static_cast<id<NSObject> >(obj); |
| 674 [nsobj retain]; |
| 675 } |
| 676 |
| 677 void NSObjectRelease(void* obj) { |
| 678 id<NSObject> nsobj = static_cast<id<NSObject> >(obj); |
| 679 [nsobj release]; |
| 680 } |
| 681 |
| 672 } // namespace mac_util | 682 } // namespace mac_util |
| OLD | NEW |