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

Side by Side Diff: chrome/common/mac/launchd.mm

Issue 9479009: roll gtm 459:516 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 10 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 | « DEPS ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/common/mac/launchd.h" 5 #include "chrome/common/mac/launchd.h"
6 6
7 #import <Foundation/Foundation.h> 7 #import <Foundation/Foundation.h>
8 #include <launch.h> 8 #include <launch.h>
9 9
10 #include "base/mac/mac_util.h" 10 #include "base/mac/mac_util.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 CFDictionaryRef Launchd::CopyExports() { 90 CFDictionaryRef Launchd::CopyExports() {
91 return GTMCopyLaunchdExports(); 91 return GTMCopyLaunchdExports();
92 } 92 }
93 93
94 CFDictionaryRef Launchd::CopyJobDictionary(CFStringRef label) { 94 CFDictionaryRef Launchd::CopyJobDictionary(CFStringRef label) {
95 return GTMSMJobCopyDictionary(label); 95 return GTMSMJobCopyDictionary(label);
96 } 96 }
97 97
98 CFDictionaryRef Launchd::CopyDictionaryByCheckingIn(CFErrorRef* error) { 98 CFDictionaryRef Launchd::CopyDictionaryByCheckingIn(CFErrorRef* error) {
99 return GTMSMJobCheckIn(error); 99 return GTMSMCopyJobCheckInDictionary(error);
100 } 100 }
101 101
102 bool Launchd::RemoveJob(CFStringRef label, CFErrorRef* error) { 102 bool Launchd::RemoveJob(CFStringRef label, CFErrorRef* error) {
103 return GTMSMJobRemove(label, error); 103 return GTMSMJobRemove(label, error);
104 } 104 }
105 105
106 bool Launchd::RestartJob(Domain domain, 106 bool Launchd::RestartJob(Domain domain,
107 Type type, 107 Type type,
108 CFStringRef name, 108 CFStringRef name,
109 CFStringRef cf_session_type) { 109 CFStringRef cf_session_type) {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 NSError* err = nil; 160 NSError* err = nil;
161 if (![[NSFileManager defaultManager] removeItemAtPath:[ns_url path] 161 if (![[NSFileManager defaultManager] removeItemAtPath:[ns_url path]
162 error:&err]) { 162 error:&err]) {
163 if ([err code] != NSFileNoSuchFileError) { 163 if ([err code] != NSFileNoSuchFileError) {
164 DLOG(ERROR) << "DeletePlist: " << base::mac::NSToCFCast(err); 164 DLOG(ERROR) << "DeletePlist: " << base::mac::NSToCFCast(err);
165 } 165 }
166 return false; 166 return false;
167 } 167 }
168 return true; 168 return true;
169 } 169 }
OLDNEW
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698