diff options
-rw-r--r-- | chrome/browser/extensions/bookmark_app_helper.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/extensions/bookmark_app_helper.cc b/chrome/browser/extensions/bookmark_app_helper.cc index 61561f0..9c030a0 100644 --- a/chrome/browser/extensions/bookmark_app_helper.cc +++ b/chrome/browser/extensions/bookmark_app_helper.cc @@ -621,6 +621,16 @@ void BookmarkAppHelper::FinishInstallation(const Extension* extension) { #endif creation_locations.applications_menu_location = web_app::APP_MENU_LOCATION_SUBDIR_CHROMEAPPS; + web_app::CreateShortcuts(web_app::SHORTCUT_CREATION_BY_USER, + creation_locations, current_profile, extension); + // Creating shortcuts in the start menu fails when the language is set + // to certain languages (e.g. Hindi). To work around this, the taskbar / + // quick launch icon is created separately to ensure it doesn't fail + // due to the start menu shortcut creation failing. + // See http://crbug.com/477297 and http://crbug.com/484577. + creation_locations.on_desktop = false; + creation_locations.applications_menu_location = + web_app::APP_MENU_LOCATION_NONE; creation_locations.in_quick_launch_bar = true; web_app::CreateShortcuts(web_app::SHORTCUT_CREATION_BY_USER, creation_locations, current_profile, extension); |