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

Unified Diff: chrome/browser/web_applications/web_app_mac.mm

Issue 20037002: Fix app shim focus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and rebase Created 7 years, 5 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 | « base/mac/launch_services_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/web_applications/web_app_mac.mm
diff --git a/chrome/browser/web_applications/web_app_mac.mm b/chrome/browser/web_applications/web_app_mac.mm
index 0644302a1448effbd37c10029fba3820a10ecad6..46589caf53bd6b22b4091ae02703120be25a839f 100644
--- a/chrome/browser/web_applications/web_app_mac.mm
+++ b/chrome/browser/web_applications/web_app_mac.mm
@@ -185,7 +185,9 @@ void LaunchShimOnFileThread(
CommandLine command_line(CommandLine::NO_PROGRAM);
command_line.AppendSwitch(app_mode::kNoLaunchApp);
- base::mac::OpenApplicationWithPath(shim_path, command_line, NULL);
+ // Launch without activating (kLSLaunchDontSwitch).
+ base::mac::OpenApplicationWithPath(
+ shim_path, command_line, kLSLaunchDefaults | kLSLaunchDontSwitch, NULL);
}
base::FilePath GetLocalizableAppShortcutsSubdirName() {
« no previous file with comments | « base/mac/launch_services_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698