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/common/service_process_util.h | |
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/common/service_process_util.h')
-rw-r--r-- | chrome/common/service_process_util.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/common/service_process_util.h b/chrome/common/service_process_util.h index 2ad72d7..1ec9d65 100644 --- a/chrome/common/service_process_util.h +++ b/chrome/common/service_process_util.h @@ -80,7 +80,7 @@ class ServiceProcessState { void SignalStopped(); // Register the service process to run on startup. - bool AddToAutoRun(CommandLine* command_line); + bool AddToAutoRun(); // Unregister the service process to run on startup. bool RemoveFromAutoRun(); @@ -111,11 +111,16 @@ class ServiceProcessState { // Tear down the platform specific state. void TearDownState(); + // Initializes the command-line that can be used to autorun the service + // process. + void CreateAutoRunCommandLine(); + // An opaque object that maintains state. The actual definition of this is // platform dependent. struct StateData; StateData* state_; scoped_ptr<base::SharedMemory> shared_mem_service_data_; + scoped_ptr<CommandLine> autorun_command_line_; friend struct DefaultSingletonTraits<ServiceProcessState>; }; |