| Index: apps/shortcut_manager.cc
|
| diff --git a/apps/shortcut_manager.cc b/apps/shortcut_manager.cc
|
| index df31a797a3013550d08559297ffc787e51feb241..2bdccb5fc2cf75ac1e26af412be29527ab63621b 100644
|
| --- a/apps/shortcut_manager.cc
|
| +++ b/apps/shortcut_manager.cc
|
| @@ -6,6 +6,8 @@
|
|
|
| #include "base/bind.h"
|
| #include "base/compiler_specific.h"
|
| +#include "base/string16.h"
|
| +#include "base/utf_string_conversions.h"
|
| #include "chrome/browser/shell_integration.h"
|
| #include "chrome/browser/ui/web_applications/web_app_ui.h"
|
| #include "chrome/browser/web_applications/web_app.h"
|
| @@ -61,7 +63,9 @@ void ShortcutManager::Observe(int type,
|
| base::Callback<void(const ShellIntegration::ShortcutInfo&)>
|
| create_or_update;
|
| if (installed_info->is_update) {
|
| - create_or_update = base::Bind(&web_app::UpdateAllShortcuts);
|
| + string16 old_title = UTF8ToUTF16(installed_info->old_name);
|
| + create_or_update = base::Bind(&web_app::UpdateAllShortcuts,
|
| + old_title);
|
| } else {
|
| create_or_update = base::Bind(&CreateShortcutsInApplicationsMenu);
|
| }
|
|
|