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

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: 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
« base/mac/launch_services_util.cc ('K') | « 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 cda4da675f1e8cbf8d2a65791183b85dd13a1cec..6a027a5eef00de6c42804d6916fc6b740f23e211 100644
--- a/chrome/browser/web_applications/web_app_mac.mm
+++ b/chrome/browser/web_applications/web_app_mac.mm
@@ -181,7 +181,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() {
« base/mac/launch_services_util.cc ('K') | « base/mac/launch_services_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698