Index: util/mac/service_management.cc |
diff --git a/util/mac/service_management.cc b/util/mac/service_management.cc |
index 3474a96a2dac70e3fe9f2f403560d4d139e1787f..9940006ade7cfef3558eddb3f35a5b2340690a0c 100644 |
--- a/util/mac/service_management.cc |
+++ b/util/mac/service_management.cc |
@@ -30,7 +30,7 @@ launch_data_t LaunchDataDictionaryForJob(const std::string& label) { |
LaunchDataDictInsert( |
request, LaunchDataNewString(label.c_str()), LAUNCH_KEY_GETJOB); |
- base::mac::ScopedLaunchData response(launch_msg(request)); |
+ base::mac::ScopedLaunchData response(LaunchMsg(request)); |
if (LaunchDataGetType(response) != LAUNCH_DATA_DICTIONARY) { |
return nullptr; |
} |
@@ -52,8 +52,7 @@ bool ServiceManagementSubmitJob(CFDictionaryRef job_cf) { |
base::mac::ScopedLaunchData request(LaunchDataAlloc(LAUNCH_DATA_DICTIONARY)); |
LaunchDataDictInsert(request, jobs.release(), LAUNCH_KEY_SUBMITJOB); |
- base::mac::ScopedLaunchData response(launch_msg(request)); |
- |
+ base::mac::ScopedLaunchData response(LaunchMsg(request)); |
if (LaunchDataGetType(response) != LAUNCH_DATA_ARRAY) { |
return false; |
} |
@@ -80,7 +79,7 @@ bool ServiceManagementRemoveJob(const std::string& label, bool wait) { |
LaunchDataDictInsert( |
request, LaunchDataNewString(label.c_str()), LAUNCH_KEY_REMOVEJOB); |
- base::mac::ScopedLaunchData response(launch_msg(request)); |
+ base::mac::ScopedLaunchData response(LaunchMsg(request)); |
if (LaunchDataGetType(response) != LAUNCH_DATA_ERRNO) { |
return false; |
} |
@@ -131,7 +130,7 @@ pid_t ServiceManagementIsJobRunning(const std::string& label) { |
return 0; |
} |
- return launch_data_get_integer(pid); |
+ return LaunchDataGetInteger(pid); |
} |
} // namespace crashpad |