summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_main.cc
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-18 00:34:21 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-18 00:34:21 +0000
commit7c47ae3e1448b0ae65d7d75a7ed82d66334b11f8 (patch)
treed718ace931258ad51fbcac618030aab236fb1bfb /chrome/browser/browser_main.cc
parente4844e11f1f5a9ee8707b1f6f79aa3de54db2248 (diff)
downloadchromium_src-7c47ae3e1448b0ae65d7d75a7ed82d66334b11f8.zip
chromium_src-7c47ae3e1448b0ae65d7d75a7ed82d66334b11f8.tar.gz
chromium_src-7c47ae3e1448b0ae65d7d75a7ed82d66334b11f8.tar.bz2
Rename MessageWindow to ProcessSingleton in anticipation of more refactoring.
Review URL: http://codereview.chromium.org/20437 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9923 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_main.cc')
-rw-r--r--chrome/browser/browser_main.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc
index d7dd579..e7cd0a1 100644
--- a/chrome/browser/browser_main.cc
+++ b/chrome/browser/browser_main.cc
@@ -68,8 +68,8 @@
#include "chrome/browser/browser_trial.h"
#include "chrome/browser/extensions/extension_protocols.h"
#include "chrome/browser/jankometer.h"
-#include "chrome/browser/message_window.h"
#include "chrome/browser/metrics/user_metrics.h"
+#include "chrome/browser/process_singleton.h"
#include "chrome/browser/net/dns_global.h"
#include "chrome/browser/net/sdch_dictionary_fetcher.h"
#include "chrome/browser/net/url_fixer_upper.h"
@@ -230,7 +230,7 @@ int BrowserMain(const MainFunctionParams& parameters) {
FilePath user_data_dir;
PathService::Get(chrome::DIR_USER_DATA, &user_data_dir);
- MessageWindow message_window(user_data_dir);
+ ProcessSingleton process_singleton(user_data_dir);
bool is_first_run = FirstRun::IsChromeFirstRun() ||
parsed_command_line.HasSwitch(switches::kFirstRun);
@@ -399,10 +399,10 @@ int BrowserMain(const MainFunctionParams& parameters) {
return FirstRun::ImportNow(profile, parsed_command_line);
// When another process is running, use it instead of starting us.
- if (message_window.NotifyOtherProcess())
+ if (process_singleton.NotifyOtherProcess())
return ResultCodes::NORMAL_EXIT;
- message_window.HuntForZombieChromeProcesses();
+ process_singleton.HuntForZombieChromeProcesses();
// Do the tasks if chrome has been upgraded while it was last running.
if (!already_running && DoUpgradeTasks(parsed_command_line)) {
@@ -419,7 +419,7 @@ int BrowserMain(const MainFunctionParams& parameters) {
if (CheckMachineLevelInstall())
return ResultCodes::MACHINE_LEVEL_INSTALL_EXISTS;
- message_window.Create();
+ process_singleton.Create();
// Show the First Run UI if this is the first time Chrome has been run on
// this computer, or we're being compelled to do so by a command line flag.
@@ -429,9 +429,9 @@ int BrowserMain(const MainFunctionParams& parameters) {
if (is_first_run && !first_run_ui_bypass) {
// We need to avoid dispatching new tabs when we are doing the import
// because that will lead to data corruption or a crash. Lock() does that.
- message_window.Lock();
+ process_singleton.Lock();
OpenFirstRunDialog(profile);
- message_window.Unlock();
+ process_singleton.Unlock();
}
// Sets things up so that if we crash from this point on, a dialog will