| 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 3a7b237f1f4e34fa21c738e9af121cd5470ece5f..088072ff4b2933ef197ec9f2c3c519dad7d19991 100644
|
| --- a/chrome/browser/web_applications/web_app_mac.mm
|
| +++ b/chrome/browser/web_applications/web_app_mac.mm
|
| @@ -969,6 +969,29 @@ void DeleteAllShortcutsForProfile(const base::FilePath& profile_path) {
|
| }
|
| }
|
|
|
| +void UpdateShortcutsForAllAppsForProfile(const base::FilePath& profile_path,
|
| + const std::set<std::string>& app_ids) {
|
| + DCHECK_CURRENTLY_ON(content::BrowserThread::FILE);
|
| + web_app::ShortcutLocations creation_locations;
|
| + // Create the shortcut in the Chrome Apps subdir.
|
| + creation_locations.applications_menu_location =
|
| + web_app::APP_MENU_LOCATION_SUBDIR_CHROMEAPPS;
|
| +
|
| + for (std::set<std::string>::const_iterator it = app_ids.begin();
|
| + it != app_ids.end();
|
| + ++it) {
|
| + content::BrowserThread::PostTask(
|
| + content::BrowserThread::UI,
|
| + FROM_HERE,
|
| + base::Bind(&web_app::internals::CallForProfileAndAppId,
|
| + profile_path,
|
| + *it,
|
| + base::Bind(&web_app::CreateShortcuts,
|
| + web_app::SHORTCUT_CREATION_AUTOMATED,
|
| + creation_locations)));
|
| + }
|
| +}
|
| +
|
| } // namespace internals
|
|
|
| } // namespace web_app
|
|
|