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> |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "base/win/win_util.h" | 22 #include "base/win/win_util.h" |
23 #include "chrome/common/chrome_constants.h" | 23 #include "chrome/common/chrome_constants.h" |
24 #include "chrome/common/chrome_paths.h" | 24 #include "chrome/common/chrome_paths.h" |
25 #include "chrome/common/chrome_switches.h" | 25 #include "chrome/common/chrome_switches.h" |
26 #include "chrome/installer/util/browser_distribution.h" | 26 #include "chrome/installer/util/browser_distribution.h" |
27 #include "chrome/installer/util/install_util.h" | 27 #include "chrome/installer/util/install_util.h" |
28 #include "chrome/installer/util/shell_util.h" | 28 #include "chrome/installer/util/shell_util.h" |
29 #include "chrome/installer/util/util_constants.h" | 29 #include "chrome/installer/util/util_constants.h" |
30 #include "ui/base/clipboard/clipboard_util_win.h" | 30 #include "ui/base/clipboard/clipboard_util_win.h" |
31 #include "ui/base/ui_base_switches.h" | 31 #include "ui/base/ui_base_switches.h" |
32 #include "ui/gfx/win/dpi.h" | 32 #include "ui/gfx/dpi.h" |
33 #include "win8/delegate_execute/chrome_util.h" | 33 #include "win8/delegate_execute/chrome_util.h" |
34 #include "win8/delegate_execute/delegate_execute_util.h" | 34 #include "win8/delegate_execute/delegate_execute_util.h" |
35 #include "win8/viewer/metro_viewer_constants.h" | 35 #include "win8/viewer/metro_viewer_constants.h" |
36 | 36 |
37 namespace { | 37 namespace { |
38 // Helper function to retrieve the url from IShellItem interface passed in. | 38 // Helper function to retrieve the url from IShellItem interface passed in. |
39 // Returns S_OK on success. | 39 // Returns S_OK on success. |
40 HRESULT GetUrlFromShellItem(IShellItem* shell_item, base::string16* url) { | 40 HRESULT GetUrlFromShellItem(IShellItem* shell_item, base::string16* url) { |
41 DCHECK(shell_item); | 41 DCHECK(shell_item); |
42 DCHECK(url); | 42 DCHECK(url); |
(...skipping 453 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 |