Index: chrome/browser/web_applications/web_app_linux.cc |
diff --git a/chrome/browser/web_applications/web_app_linux.cc b/chrome/browser/web_applications/web_app_linux.cc |
index f9a21d168cfcc8fd39af955a5da16ec46a070ef4..5fc0437ad101cb758cb435d071504965816c3469 100644 |
--- a/chrome/browser/web_applications/web_app_linux.cc |
+++ b/chrome/browser/web_applications/web_app_linux.cc |
@@ -11,9 +11,10 @@ |
namespace web_app { |
namespace internals { |
-void CreateShortcutTask(const FilePath& web_app_path, |
- const FilePath& profile_path, |
- const ShellIntegration::ShortcutInfo& shortcut_info) { |
+bool CreatePlatformShortcut( |
+ const FilePath& web_app_path, |
+ const FilePath& profile_path, |
+ const ShellIntegration::ShortcutInfo& shortcut_info) { |
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE)); |
scoped_ptr<base::Environment> env(base::Environment::Create()); |
@@ -21,9 +22,11 @@ void CreateShortcutTask(const FilePath& web_app_path, |
std::string shortcut_template; |
if (!ShellIntegration::GetDesktopShortcutTemplate(env.get(), |
&shortcut_template)) { |
- return; |
+ return false; |
} |
- ShellIntegration::CreateDesktopShortcut(shortcut_info, shortcut_template); |
+ return ShellIntegration::CreateDesktopShortcutForChromeApp(shortcut_info, |
+ web_app_path, |
+ shortcut_template); |
} |
} // namespace internals |