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

Side by Side Diff: base/mac_util.mm

Issue 3560004: Refactor the code for loading icons into the PageInfoModel. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: cleanup Created 10 years, 2 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
« no previous file with comments | « base/mac_util.h ('k') | base/mac_util_unittest.mm » ('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) 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
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
OLDNEW
« no previous file with comments | « base/mac_util.h ('k') | base/mac_util_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698