diff options
author | robertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-08 17:50:30 +0000 |
---|---|---|
committer | robertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-08 17:50:30 +0000 |
commit | d652bfa5646f4abd22b470a88478769c222c2177 (patch) | |
tree | 44f25d8b94f5c939df5ee12201ef6367b508ce25 /win8/delegate_execute/command_execute_impl.cc | |
parent | a9e5f04481565af0a3c8dbe770b14899f24b68f7 (diff) | |
download | chromium_src-d652bfa5646f4abd22b470a88478769c222c2177.zip chromium_src-d652bfa5646f4abd22b470a88478769c222c2177.tar.gz chromium_src-d652bfa5646f4abd22b470a88478769c222c2177.tar.bz2 |
Manually merging remaining Win8 changes.
BUG=127799
TEST=NONE
Review URL: https://chromiumcodereview.appspot.com/10914160
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155592 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'win8/delegate_execute/command_execute_impl.cc')
-rw-r--r-- | win8/delegate_execute/command_execute_impl.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/win8/delegate_execute/command_execute_impl.cc b/win8/delegate_execute/command_execute_impl.cc index ef1378a..9781386 100644 --- a/win8/delegate_execute/command_execute_impl.cc +++ b/win8/delegate_execute/command_execute_impl.cc @@ -220,7 +220,7 @@ STDMETHODIMP CommandExecuteImpl::Execute() { AtlTrace("Activating for file\n"); hr = activation_manager->ActivateApplication(app_id.c_str(), verb_.c_str(), - AO_NOERRORUI, + AO_NONE, &pid); } else { AtlTrace("Activating for protocol\n"); @@ -388,6 +388,7 @@ HRESULT CommandExecuteImpl::LaunchDesktopChrome() { &proc_info); if (ret) { AtlTrace("Process id is %d\n", proc_info.dwProcessId); + AllowSetForegroundWindow(proc_info.dwProcessId); CloseHandle(proc_info.hProcess); CloseHandle(proc_info.hThread); } else { @@ -417,8 +418,15 @@ EC_HOST_UI_MODE CommandExecuteImpl::GetLaunchMode() { if (parameters_ == ASCIIToWide(switches::kForceImmersive)) { launch_mode = ECHUIM_IMMERSIVE; - AtlTrace("Launch mode forced to %s\n", modes[launch_mode]); launch_mode_determined = true; + } else if (parameters_ == ASCIIToWide(switches::kForceDesktop)) { + launch_mode = ECHUIM_DESKTOP; + launch_mode_determined = true; + } + + if (launch_mode_determined) { + parameters_.clear(); + AtlTrace("Launch mode forced to %s\n", modes[launch_mode]); return launch_mode; } |