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

Side by Side Diff: chrome/common/service_process_util_mac.mm

Issue 6591002: Removed the command line from ServiceProcessState::AddToAutoRun() and had the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #import <Foundation/Foundation.h> 7 #import <Foundation/Foundation.h>
8 #include <launch.h> 8 #include <launch.h>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 ready = true; 178 ready = true;
179 } 179 }
180 } 180 }
181 } 181 }
182 if (!ready) { 182 if (!ready) {
183 ForceServiceProcessShutdown(version, pid); 183 ForceServiceProcessShutdown(version, pid);
184 } 184 }
185 return ready; 185 return ready;
186 } 186 }
187 187
188 bool ServiceProcessState::AddToAutoRun(CommandLine* cmd_line) { 188 bool ServiceProcessState::AddToAutoRun() {
189 NOTIMPLEMENTED(); 189 NOTIMPLEMENTED();
190 return false; 190 return false;
191 } 191 }
192 192
193 bool ServiceProcessState::RemoveFromAutoRun() { 193 bool ServiceProcessState::RemoveFromAutoRun() {
194 NOTIMPLEMENTED(); 194 NOTIMPLEMENTED();
195 return false; 195 return false;
196 } 196 }
197 197
198 CFDictionaryRef CreateServiceProcessLaunchdPlist(CommandLine* cmd_line) { 198 CFDictionaryRef CreateServiceProcessLaunchdPlist(CommandLine* cmd_line) {
(...skipping 20 matching lines...) Expand all
219 219
220 NSDictionary *launchd_plist = 220 NSDictionary *launchd_plist =
221 [[NSDictionary alloc] initWithObjectsAndKeys: 221 [[NSDictionary alloc] initWithObjectsAndKeys:
222 GetServiceProcessLaunchDLabel(), @ LAUNCH_JOBKEY_LABEL, 222 GetServiceProcessLaunchDLabel(), @ LAUNCH_JOBKEY_LABEL,
223 program, @ LAUNCH_JOBKEY_PROGRAM, 223 program, @ LAUNCH_JOBKEY_PROGRAM,
224 ns_args, @ LAUNCH_JOBKEY_PROGRAMARGUMENTS, 224 ns_args, @ LAUNCH_JOBKEY_PROGRAMARGUMENTS,
225 sockets, @ LAUNCH_JOBKEY_SOCKETS, 225 sockets, @ LAUNCH_JOBKEY_SOCKETS,
226 nil]; 226 nil];
227 return reinterpret_cast<CFDictionaryRef>(launchd_plist); 227 return reinterpret_cast<CFDictionaryRef>(launchd_plist);
228 } 228 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698