diff options
author | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-14 03:25:15 +0000 |
---|---|---|
committer | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-14 03:25:15 +0000 |
commit | 176aa48371da91eb98d675d87b4e70c7b26d696f (patch) | |
tree | 4c972de6ecd5a54650ab1dc7d421187f5d25834f /chrome/browser/first_run.cc | |
parent | 9a3f0ac2899139ace97e399015259d028b4d5704 (diff) | |
download | chromium_src-176aa48371da91eb98d675d87b4e70c7b26d696f.zip chromium_src-176aa48371da91eb98d675d87b4e70c7b26d696f.tar.gz chromium_src-176aa48371da91eb98d675d87b4e70c7b26d696f.tar.bz2 |
Add Terminate() to the Process object, have RenderProcessHost use this to avoid some more Windows specific code.
Move Process and SharedMemory into the base namespace (most changes).
Review URL: http://codereview.chromium.org/10895
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5446 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/first_run.cc')
-rwxr-xr-x | chrome/browser/first_run.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/chrome/browser/first_run.cc b/chrome/browser/first_run.cc index 3e82aa0..1c72024 100755 --- a/chrome/browser/first_run.cc +++ b/chrome/browser/first_run.cc @@ -206,8 +206,8 @@ bool Upgrade::IsBrowserAlreadyRunning() { bool Upgrade::RelaunchChromeBrowser(const CommandLine& command_line) { ::SetEnvironmentVariable(google_update::kEnvProductVersionKey, NULL); - return process_util::LaunchApp(command_line.command_line_string(), - false, false, NULL); + return base::LaunchApp(command_line.command_line_string(), + false, false, NULL); } bool Upgrade::SwapNewChromeExeIfPresent() { @@ -226,8 +226,8 @@ bool Upgrade::SwapNewChromeExeIfPresent() { std::wstring rename_cmd; if (key.Open(reg_root, dist->GetVersionKey().c_str(), KEY_READ) && key.ReadValue(google_update::kRegRenameCmdField, &rename_cmd)) { - ProcessHandle handle; - if (process_util::LaunchApp(rename_cmd, true, true, &handle)) { + base::ProcessHandle handle; + if (base::LaunchApp(rename_cmd, true, true, &handle)) { DWORD exit_code; ::GetExitCodeProcess(handle, &exit_code); ::CloseHandle(handle); @@ -267,7 +267,7 @@ class ImportProcessRunner : public base::ObjectWatcher::Delegate { // The constructor takes the importer process to watch and then it does a // message loop blocking wait until the process ends. This object now owns // the import_process handle. - explicit ImportProcessRunner(ProcessHandle import_process) + explicit ImportProcessRunner(base::ProcessHandle import_process) : import_process_(import_process), exit_code_(ResultCodes::NORMAL_EXIT) { watcher_.StartWatching(import_process, this); @@ -292,7 +292,7 @@ class ImportProcessRunner : public base::ObjectWatcher::Delegate { private: base::ObjectWatcher watcher_; - ProcessHandle import_process_; + base::ProcessHandle import_process_; DWORD exit_code_; }; @@ -309,7 +309,7 @@ class HungImporterMonitor : public WorkerThreadTicker::Callback { // The ctor takes the owner popup window and the process handle of the // process to kill in case the popup or its owned active popup become // unresponsive. - HungImporterMonitor(HWND owner_window, ProcessHandle import_process) + HungImporterMonitor(HWND owner_window, base::ProcessHandle import_process) : owner_window_(owner_window), import_process_(import_process), ticker_(kPollHangFrequency) { @@ -338,7 +338,7 @@ class HungImporterMonitor : public WorkerThreadTicker::Callback { } HWND owner_window_; - ProcessHandle import_process_; + base::ProcessHandle import_process_; WorkerThreadTicker ticker_; DISALLOW_EVIL_CONSTRUCTORS(HungImporterMonitor); }; @@ -418,8 +418,8 @@ bool FirstRun::ImportSettings(Profile* profile, int browser, EncodeImportParams(browser, items_to_import, parent_window)); // Time to launch the process that is going to do the import. - ProcessHandle import_process; - if (!process_util::LaunchApp(import_cmd, false, false, &import_process)) + base::ProcessHandle import_process; + if (!base::LaunchApp(import_cmd, false, false, &import_process)) return false; // Activate the importer monitor. It awakes periodically in another thread |