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 8ccaa978f8029435947f4732d688a5b121637694..da2fdfce7bfb78228b06ac1fd6aa0e201642270f 100644 |
--- a/chrome/browser/web_applications/web_app_mac.mm |
+++ b/chrome/browser/web_applications/web_app_mac.mm |
@@ -20,8 +20,9 @@ |
namespace web_app { |
WebAppShortcutCreator::WebAppShortcutCreator( |
+ const FilePath& web_app_path, |
const ShellIntegration::ShortcutInfo& shortcut_info) |
- : info_(shortcut_info) { |
+ : web_app_path_(web_app_path), info_(shortcut_info) { |
} |
WebAppShortcutCreator::~WebAppShortcutCreator() { |
@@ -95,6 +96,8 @@ bool WebAppShortcutCreator::UpdatePlist(const FilePath& app_path) const { |
forKey:app_mode::kCrAppModeShortcutNameKey]; |
[dict setObject:base::SysUTF8ToNSString(info_.url.spec()) |
forKey:app_mode::kCrAppModeShortcutURLKey]; |
+ [dict setObject:base::mac::FilePathToNSString(web_app_path_) |
+ forKey:app_mode::kCrAppModeUserDataDirKey]; |
return [dict writeToFile:plist_path atomically:YES]; |
} |
@@ -111,7 +114,7 @@ namespace internals { |
void CreateShortcutTask(const FilePath& web_app_path, |
const FilePath& profile_path, |
const ShellIntegration::ShortcutInfo& shortcut_info) { |
- WebAppShortcutCreator shortcut_creator(shortcut_info); |
+ WebAppShortcutCreator shortcut_creator(web_app_path, shortcut_info); |
shortcut_creator.CreateShortcut(); |
} |