OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/web_applications/web_app.h" | 5 #include "chrome/browser/web_applications/web_app.h" |
6 | 6 |
7 #include "base/environment.h" | 7 #include "base/environment.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "chrome/browser/shell_integration_linux.h" | 9 #include "chrome/browser/shell_integration_linux.h" |
10 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 std::string shortcut_template; | 23 std::string shortcut_template; |
24 if (!ShellIntegrationLinux::GetDesktopShortcutTemplate(env.get(), | 24 if (!ShellIntegrationLinux::GetDesktopShortcutTemplate(env.get(), |
25 &shortcut_template)) { | 25 &shortcut_template)) { |
26 return false; | 26 return false; |
27 } | 27 } |
28 return ShellIntegrationLinux::CreateDesktopShortcut( | 28 return ShellIntegrationLinux::CreateDesktopShortcut( |
29 shortcut_info, shortcut_template); | 29 shortcut_info, shortcut_template); |
30 } | 30 } |
31 | 31 |
| 32 void DeletePlatformShortcuts(const FilePath& profile_path, |
| 33 const std::string& extension_id) { |
| 34 ShellIntegrationLinux::DeleteDesktopShortcuts(profile_path, extension_id); |
| 35 } |
| 36 |
32 } // namespace internals | 37 } // namespace internals |
33 } // namespace web_app | 38 } // namespace web_app |
OLD | NEW |