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

Unified Diff: util/mac/service_management.cc

Issue 978883007: util/mac: Provide wrappers for <launch.h> functions deprecated in 10.10 (#3) (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698