summaryrefslogtreecommitdiffstats
path: root/chrome/browser/process_singleton_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/process_singleton_win.cc')
-rw-r--r--chrome/browser/process_singleton_win.cc29
1 files changed, 1 insertions, 28 deletions
diff --git a/chrome/browser/process_singleton_win.cc b/chrome/browser/process_singleton_win.cc
index f394852..43adccc 100644
--- a/chrome/browser/process_singleton_win.cc
+++ b/chrome/browser/process_singleton_win.cc
@@ -255,8 +255,7 @@ bool ProcessSingleton::EscapeVirtualization(
ProcessSingleton::ProcessSingleton(
const base::FilePath& user_data_dir,
const NotificationCallback& notification_callback)
- : window_(NULL), locked_(false), foreground_window_(NULL),
- notification_callback_(notification_callback),
+ : window_(NULL), notification_callback_(notification_callback),
is_virtualized_(false), lock_file_(INVALID_HANDLE_VALUE),
user_data_dir_(user_data_dir) {
}
@@ -538,28 +537,6 @@ void ProcessSingleton::Cleanup() {
}
LRESULT ProcessSingleton::OnCopyData(HWND hwnd, const COPYDATASTRUCT* cds) {
- // If locked, it means we are not ready to process this message because
- // we are probably in a first run critical phase.
- if (locked_) {
-#if defined(USE_AURA)
- NOTIMPLEMENTED();
-#else
- // Attempt to place ourselves in the foreground / flash the task bar.
- if (foreground_window_ != NULL && ::IsWindow(foreground_window_)) {
- DoSetForegroundWindow(foreground_window_);
- } else {
- // Read the command line and store it. It will be replayed when the
- // ProcessSingleton becomes unlocked.
- CommandLine parsed_command_line(CommandLine::NO_PROGRAM);
- base::FilePath current_directory;
- if (ParseCommandLine(cds, &parsed_command_line, &current_directory))
- saved_startup_messages_.push_back(
- std::make_pair(parsed_command_line.argv(), current_directory));
- }
-#endif
- return TRUE;
- }
-
CommandLine parsed_command_line(CommandLine::NO_PROGRAM);
base::FilePath current_directory;
if (!ParseCommandLine(cds, &parsed_command_line, &current_directory))
@@ -568,10 +545,6 @@ LRESULT ProcessSingleton::OnCopyData(HWND hwnd, const COPYDATASTRUCT* cds) {
TRUE : FALSE;
}
-void ProcessSingleton::DoSetForegroundWindow(HWND target_window) {
- ::SetForegroundWindow(target_window);
-}
-
LRESULT ProcessSingleton::WndProc(HWND hwnd, UINT message,
WPARAM wparam, LPARAM lparam) {
switch (message) {