Chromium Code Reviews| Index: chrome/browser/web_applications/web_app_linux.cc |
| diff --git a/chrome/browser/web_applications/web_app_linux.cc b/chrome/browser/web_applications/web_app_linux.cc |
| index c15c8250ed1e15edcbb18b72cdb49789b2c73675..1cd7e05bf6202c37f7aad68edd390e3dd19f0e51 100644 |
| --- a/chrome/browser/web_applications/web_app_linux.cc |
| +++ b/chrome/browser/web_applications/web_app_linux.cc |
| @@ -54,16 +54,18 @@ void UpdatePlatformShortcuts( |
| ShortcutLocations creation_locations = |
| shell_integration_linux::GetExistingShortcutLocations( |
| env.get(), shortcut_info.profile_path, shortcut_info.extension_id); |
| + |
| // Always create a hidden shortcut in applications if a visible one is not |
| // being created. This allows the operating system to identify the app, but |
| // not show it in the menu. |
| - creation_locations.hidden = true; |
|
tmdiep
2014/06/06 08:34:14
Note: This creates shortcuts even if one did not p
|
| + if (creation_locations.applications_menu_location == APP_MENU_LOCATION_NONE) |
| + creation_locations.applications_menu_location = APP_MENU_LOCATION_HIDDEN; |
| CreatePlatformShortcuts(web_app_path, |
| shortcut_info, |
| file_handlers_info, |
| creation_locations, |
| - SHORTCUT_CREATION_BY_USER); |
| + SHORTCUT_CREATION_AUTOMATED); |
| } |
| void DeleteAllShortcutsForProfile(const base::FilePath& profile_path) { |