| OLD | NEW |
| 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/service_process_util_posix.h" | 5 #include "chrome/common/service_process_util_posix.h" |
| 6 | 6 |
| 7 #include <signal.h> | 7 #include <signal.h> |
| 8 #include <unistd.h> | 8 #include <unistd.h> |
| 9 | 9 |
| 10 #include "base/base_paths.h" | 10 #include "base/base_paths.h" |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 bool ServiceProcessState::AddToAutoRun() { | 94 bool ServiceProcessState::AddToAutoRun() { |
| 95 DCHECK(autorun_command_line_.get()); | 95 DCHECK(autorun_command_line_.get()); |
| 96 #if defined(GOOGLE_CHROME_BUILD) | 96 #if defined(GOOGLE_CHROME_BUILD) |
| 97 std::string app_name = "Google Chrome Service"; | 97 std::string app_name = "Google Chrome Service"; |
| 98 #else // CHROMIUM_BUILD | 98 #else // CHROMIUM_BUILD |
| 99 std::string app_name = "Chromium Service"; | 99 std::string app_name = "Chromium Service"; |
| 100 #endif | 100 #endif |
| 101 return AutoStart::AddApplication( | 101 return AutoStart::AddApplication( |
| 102 GetServiceProcessScopedName(GetBaseDesktopName()), | 102 GetServiceProcessScopedName(GetBaseDesktopName()), |
| 103 app_name, | 103 app_name, |
| 104 autorun_command_line_->command_line_string(), | 104 autorun_command_line_->GetCommandLineString(), |
| 105 false); | 105 false); |
| 106 } | 106 } |
| 107 | 107 |
| 108 bool ServiceProcessState::RemoveFromAutoRun() { | 108 bool ServiceProcessState::RemoveFromAutoRun() { |
| 109 return AutoStart::Remove( | 109 return AutoStart::Remove( |
| 110 GetServiceProcessScopedName(GetBaseDesktopName())); | 110 GetServiceProcessScopedName(GetBaseDesktopName())); |
| 111 } | 111 } |
| OLD | NEW |