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

Unified Diff: win8/delegate_execute/command_execute_impl.cc

Issue 10914160: Manually merging remaining Win8 changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | win8/delegate_execute/delegate_execute.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: win8/delegate_execute/command_execute_impl.cc
diff --git a/win8/delegate_execute/command_execute_impl.cc b/win8/delegate_execute/command_execute_impl.cc
index ef1378a23b57aa4378f88ec1f942f09d24dccf24..978138645d3bfd6c6f90053a6c75a0c865a4e631 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;
}
« no previous file with comments | « no previous file | win8/delegate_execute/delegate_execute.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698