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

Side by Side Diff: chrome/common/service_process_util_linux.cc

Issue 7386002: Rename CommandLine::GetCommandLineString(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge. Created 9 years, 5 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
« no previous file with comments | « chrome/browser/web_applications/web_app.cc ('k') | chrome/common/service_process_util_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/web_applications/web_app.cc ('k') | chrome/common/service_process_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698