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/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/process/process_handle.h" | 15 #include "base/process/process_handle.h" |
16 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
17 #include "base/win/message_window.h" | 17 #include "base/win/message_window.h" |
18 #include "base/win/registry.h" | 18 #include "base/win/registry.h" |
19 #include "base/win/scoped_co_mem.h" | 19 #include "base/win/scoped_co_mem.h" |
20 #include "base/win/scoped_handle.h" | 20 #include "base/win/scoped_handle.h" |
21 #include "base/win/scoped_process_information.h" | 21 #include "base/win/scoped_process_information.h" |
22 #include "base/win/win_util.h" | 22 #include "base/win/win_util.h" |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 AtlTrace("Invalid registry launch mode value %u\n", reg_value); | 496 AtlTrace("Invalid registry launch mode value %u\n", reg_value); |
497 launch_mode = ECHUIM_DESKTOP; | 497 launch_mode = ECHUIM_DESKTOP; |
498 } else { | 498 } else { |
499 launch_mode = static_cast<EC_HOST_UI_MODE>(reg_value); | 499 launch_mode = static_cast<EC_HOST_UI_MODE>(reg_value); |
500 AtlTrace("Launch mode forced by registry to %s\n", modes[launch_mode]); | 500 AtlTrace("Launch mode forced by registry to %s\n", modes[launch_mode]); |
501 } | 501 } |
502 | 502 |
503 launch_mode_determined = true; | 503 launch_mode_determined = true; |
504 return launch_mode; | 504 return launch_mode; |
505 } | 505 } |
OLD | NEW |