Chromium Code Reviews| Index: remoting/host/me2me_preference_pane.mm |
| diff --git a/remoting/host/me2me_preference_pane.mm b/remoting/host/me2me_preference_pane.mm |
| index f3fa2d4e567cf94d714c0dafd8db4b533a3840be..a2a342f181247c77be6bf676202cda8c2d6060b0 100644 |
| --- a/remoting/host/me2me_preference_pane.mm |
| +++ b/remoting/host/me2me_preference_pane.mm |
| @@ -523,17 +523,8 @@ std::string JsonHostConfig::GetSerializedData() const { |
| have_new_config_ = NO; |
| - // If the service is running, send a signal to cause it to reload its |
| - // configuration, otherwise start the service. |
| - if (is_service_running_) { |
| - pid_t job_pid = base::mac::PIDForJob(remoting::kServiceName); |
| - if (job_pid > 0) { |
| - kill(job_pid, SIGHUP); |
| - } else { |
| - NSLog(@"Failed to obtain PID of service %s", remoting::kServiceName); |
| - [self showError]; |
| - } |
| - } else { |
| + // Start the service. |
|
Wez
2012/08/24 22:20:38
nit: "Ensure the service is started".
alexeypa (please no reviews)
2012/08/27 23:16:41
Done.
|
| + if (!is_service_running_) { |
| [self sendJobControlMessage:LAUNCH_KEY_STARTJOB]; |
| } |