| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // Implementation of the CommandExecuteImpl class which implements the | 4 // Implementation of the CommandExecuteImpl class which implements the |
| 5 // IExecuteCommand and related interfaces for handling ShellExecute based | 5 // IExecuteCommand and related interfaces for handling ShellExecute based |
| 6 // launches of the Chrome browser. | 6 // launches of the Chrome browser. |
| 7 | 7 |
| 8 #include "win8/delegate_execute/command_execute_impl.h" | 8 #include "win8/delegate_execute/command_execute_impl.h" |
| 9 | 9 |
| 10 #include <shlguid.h> | 10 #include <shlguid.h> |
| 11 | 11 |
| 12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
| 13 #include "base/path_service.h" | 13 #include "base/path_service.h" |
| 14 #include "base/process/launch.h" | 14 #include "base/process/launch.h" |
| 15 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
| 16 #include "base/win/message_window.h" | |
| 17 #include "base/win/registry.h" | 16 #include "base/win/registry.h" |
| 18 #include "base/win/scoped_co_mem.h" | 17 #include "base/win/scoped_co_mem.h" |
| 19 #include "base/win/scoped_handle.h" | 18 #include "base/win/scoped_handle.h" |
| 20 #include "base/win/scoped_process_information.h" | 19 #include "base/win/scoped_process_information.h" |
| 21 #include "base/win/win_util.h" | 20 #include "base/win/win_util.h" |
| 22 #include "base/win/windows_version.h" | 21 #include "base/win/windows_version.h" |
| 23 #include "chrome/common/chrome_constants.h" | 22 #include "chrome/common/chrome_constants.h" |
| 24 #include "chrome/common/chrome_paths.h" | 23 #include "chrome/common/chrome_paths.h" |
| 25 #include "chrome/common/chrome_switches.h" | 24 #include "chrome/common/chrome_switches.h" |
| 26 #include "chrome/installer/util/browser_distribution.h" | 25 #include "chrome/installer/util/browser_distribution.h" |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 AtlTrace("Invalid registry launch mode value %u\n", reg_value); | 502 AtlTrace("Invalid registry launch mode value %u\n", reg_value); |
| 504 launch_mode = ECHUIM_DESKTOP; | 503 launch_mode = ECHUIM_DESKTOP; |
| 505 } else { | 504 } else { |
| 506 launch_mode = static_cast<EC_HOST_UI_MODE>(reg_value); | 505 launch_mode = static_cast<EC_HOST_UI_MODE>(reg_value); |
| 507 AtlTrace("Launch mode forced by registry to %s\n", modes[launch_mode]); | 506 AtlTrace("Launch mode forced by registry to %s\n", modes[launch_mode]); |
| 508 } | 507 } |
| 509 | 508 |
| 510 launch_mode_determined = true; | 509 launch_mode_determined = true; |
| 511 return launch_mode; | 510 return launch_mode; |
| 512 } | 511 } |
| OLD | NEW |