Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Side by Side Diff: win8/delegate_execute/command_execute_impl.cc

Issue 206573002: Fix for VS2010 compiler warning. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 // Metro mode apps don't work in high integrity mode. 425 // Metro mode apps don't work in high integrity mode.
426 AtlTrace("High integrity: launching in desktop mode\n"); 426 AtlTrace("High integrity: launching in desktop mode\n");
427 launch_mode = ECHUIM_DESKTOP; 427 launch_mode = ECHUIM_DESKTOP;
428 launch_mode_determined = true; 428 launch_mode_determined = true;
429 return launch_mode; 429 return launch_mode;
430 } 430 }
431 431
432 base::FilePath chrome_exe; 432 base::FilePath chrome_exe;
433 if (!FindChromeExe(&chrome_exe) || 433 if (!FindChromeExe(&chrome_exe) ||
434 ShellUtil::GetChromeDefaultStateFromPath(chrome_exe) != 434 ShellUtil::GetChromeDefaultStateFromPath(chrome_exe) !=
435 ShellUtil::DefaultState::IS_DEFAULT) { 435 ShellUtil::IS_DEFAULT) {
436 AtlTrace("Chrome is not default: launching in desktop mode\n"); 436 AtlTrace("Chrome is not default: launching in desktop mode\n");
437 launch_mode = ECHUIM_DESKTOP; 437 launch_mode = ECHUIM_DESKTOP;
438 launch_mode_determined = true; 438 launch_mode_determined = true;
439 return launch_mode; 439 return launch_mode;
440 } 440 }
441 441
442 if (GetAsyncKeyState(VK_SHIFT) && GetAsyncKeyState(VK_F11)) { 442 if (GetAsyncKeyState(VK_SHIFT) && GetAsyncKeyState(VK_F11)) {
443 AtlTrace("Hotkey: launching in immersive mode\n"); 443 AtlTrace("Hotkey: launching in immersive mode\n");
444 launch_mode = ECHUIM_IMMERSIVE; 444 launch_mode = ECHUIM_IMMERSIVE;
445 launch_mode_determined = true; 445 launch_mode_determined = true;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 AtlTrace("Invalid registry launch mode value %u\n", reg_value); 492 AtlTrace("Invalid registry launch mode value %u\n", reg_value);
493 launch_mode = ECHUIM_DESKTOP; 493 launch_mode = ECHUIM_DESKTOP;
494 } else { 494 } else {
495 launch_mode = static_cast<EC_HOST_UI_MODE>(reg_value); 495 launch_mode = static_cast<EC_HOST_UI_MODE>(reg_value);
496 AtlTrace("Launch mode forced by registry to %s\n", modes[launch_mode]); 496 AtlTrace("Launch mode forced by registry to %s\n", modes[launch_mode]);
497 } 497 }
498 498
499 launch_mode_determined = true; 499 launch_mode_determined = true;
500 return launch_mode; 500 return launch_mode;
501 } 501 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698