creation_locations.in_quick_launch_bar = false;
#endif
- web_app::CreateShortcutsForShortcutInfo(
- web_app::SHORTCUT_CREATION_BY_USER,
- creation_locations,
- shortcut_info_);
+ web_app::CreateShortcutsWithInfo(web_app::SHORTCUT_CREATION_BY_USER,
+ creation_locations,
+ shortcut_info_,
+ file_handlers_info_);
return true;
}
InitControls(DIALOG_LAYOUT_APP_SHORTCUT);
- // Get shortcut information and icon; they are needed for creating the
- // shortcut.
- web_app::UpdateShortcutInfoAndIconForApp(
+ // Get shortcut, icon and file handler information; they are needed for
+ // creating the shortcut.
+ web_app::GetInfoForApp(
app,
profile,
- base::Bind(&CreateChromeApplicationShortcutView::OnShortcutInfoLoaded,
+ base::Bind(&CreateChromeApplicationShortcutView::OnAppInfoLoaded,
weak_ptr_factory_.GetWeakPtr()));
}
return CreateApplicationShortcutView::Cancel();
}
-// Called when the app's ShortcutInfo (with icon) is loaded.
-void CreateChromeApplicationShortcutView::OnShortcutInfoLoaded(
- const web_app::ShortcutInfo& shortcut_info) {
+void CreateChromeApplicationShortcutView::OnAppInfoLoaded(
+ const web_app::ShortcutInfo& shortcut_info,
+ const extensions::FileHandlersInfo& file_handlers_info) {
shortcut_info_ = shortcut_info;
+ file_handlers_info_ = file_handlers_info;
}