summaryrefslogtreecommitdiffstats
path: root/chrome/common/service_process_util.cc
diff options
context:
space:
mode:
authordmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-23 02:54:41 +0000
committerdmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-23 02:54:41 +0000
commit5bfcd4910aa318d0a78c3f39c6948c2f7364ded6 (patch)
tree613782fe742533b00ca6783112f2d69d07cfb5d1 /chrome/common/service_process_util.cc
parent67dba5728632d0befbe729ca0d752c0cab7e274e (diff)
downloadchromium_src-5bfcd4910aa318d0a78c3f39c6948c2f7364ded6.zip
chromium_src-5bfcd4910aa318d0a78c3f39c6948c2f7364ded6.tar.gz
chromium_src-5bfcd4910aa318d0a78c3f39c6948c2f7364ded6.tar.bz2
ServiceProcess clean up
I'm about to start into fixing a race condition that I introduced, but wanted to get this cleanup in as a separate CL. Simplifies some interfaces. Combines two separate task postings into one. Adds some comments. BUG=NONE TEST=BUILD Review URL: http://codereview.chromium.org/6724002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79095 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/service_process_util.cc')
-rw-r--r--chrome/common/service_process_util.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/chrome/common/service_process_util.cc b/chrome/common/service_process_util.cc
index a12a592..42f5da6 100644
--- a/chrome/common/service_process_util.cc
+++ b/chrome/common/service_process_util.cc
@@ -162,6 +162,7 @@ IPC::ChannelHandle GetServiceProcessChannel() {
ServiceProcessState::ServiceProcessState() : state_(NULL) {
CreateAutoRunCommandLine();
+ CreateState();
}
ServiceProcessState::~ServiceProcessState() {
@@ -180,9 +181,6 @@ void ServiceProcessState::SignalStopped() {
#if !defined(OS_MACOSX)
bool ServiceProcessState::Initialize() {
- if (!CreateState()) {
- return false;
- }
if (!TakeSingletonLock()) {
return false;
}