Clean the SingletonLock only if there is no previous Chromium process running.

BUG=96134
TEST=Launch three Chrome processes to see that the third one doesn't crash.

Patch by [email protected]

Review URL: http://codereview.chromium.org/7796030

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100943 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/chrome_browser_main.h b/chrome/browser/chrome_browser_main.h
index 74ed9ec..dba86af 100644
--- a/chrome/browser/chrome_browser_main.h
+++ b/chrome/browser/chrome_browser_main.h
@@ -11,6 +11,7 @@
 #include "base/metrics/field_trial.h"
 #include "base/tracked_objects.h"
 #include "chrome/browser/first_run/first_run.h"
+#include "chrome/browser/process_singleton.h"
 #include "content/browser/browser_main.h"
 
 class BrowserProcessImpl;
@@ -18,7 +19,6 @@
 class HistogramSynchronizer;
 class MetricsService;
 class PrefService;
-class ProcessSingleton;
 class Profile;
 class ShutdownWatcherHelper;
 class TranslateManager;
@@ -117,6 +117,7 @@
   TranslateManager* translate_manager_;
   Profile* profile_;
   bool run_message_loop_;
+  ProcessSingleton::NotifyResult notify_result_;
 
   // Initialized in SetupMetricsAndFieldTrials.
   scoped_refptr<FieldTrialSynchronizer> field_trial_synchronizer_;