diff options
author | sanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-25 19:00:41 +0000 |
---|---|---|
committer | sanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-25 19:00:41 +0000 |
commit | 5f86d6ffe9722dafa98bc5b068962de4533e0130 (patch) | |
tree | 8aaa2f8b9839f7e07cc388a59aa3760849fc7b92 /chrome/service/service_process.cc | |
parent | e34b6f3a2a024060d59fb7585a4a497a7aa2cf26 (diff) | |
download | chromium_src-5f86d6ffe9722dafa98bc5b068962de4533e0130.zip chromium_src-5f86d6ffe9722dafa98bc5b068962de4533e0130.tar.gz chromium_src-5f86d6ffe9722dafa98bc5b068962de4533e0130.tar.bz2 |
Removed the command line from ServiceProcessState::AddToAutoRun() and had the class calculate its own command line. Wired up Linux autorun code and added unit tests.
BUG=None
TEST=Test service process autorun when enabling the cloud print proxy, unit-tests.
Review URL: http://codereview.chromium.org/6591002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76077 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service/service_process.cc')
-rw-r--r-- | chrome/service/service_process.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/chrome/service/service_process.cc b/chrome/service/service_process.cc index 9c0a8c8..68d02a7 100644 --- a/chrome/service/service_process.cc +++ b/chrome/service/service_process.cc @@ -218,8 +218,6 @@ bool ServiceProcess::Initialize(MessageLoopForUI* message_loop, // See if we need to stay running. ScheduleShutdownCheck(); - command_line_.reset(new CommandLine(command_line)); - return true; } @@ -309,7 +307,7 @@ void ServiceProcess::OnChromotingHostDisabled() { void ServiceProcess::OnServiceEnabled() { enabled_services_++; if (1 == enabled_services_) { - ServiceProcessState::GetInstance()->AddToAutoRun(command_line_.get()); + ServiceProcessState::GetInstance()->AddToAutoRun(); } } |