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 #import "chrome/browser/web_applications/web_app_mac.h" | 5 #import "chrome/browser/web_applications/web_app_mac.h" |
6 | 6 |
7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
8 | 8 |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/mac/bundle_locations.h" | 10 #include "base/mac/bundle_locations.h" |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 const FilePath& web_app_path, | 255 const FilePath& web_app_path, |
256 const FilePath& profile_path, | 256 const FilePath& profile_path, |
257 const ShellIntegration::ShortcutInfo& shortcut_info) { | 257 const ShellIntegration::ShortcutInfo& shortcut_info) { |
258 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE)); | 258 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE)); |
259 string16 bundle_id = UTF8ToUTF16(base::mac::BaseBundleID()); | 259 string16 bundle_id = UTF8ToUTF16(base::mac::BaseBundleID()); |
260 WebAppShortcutCreator shortcut_creator(web_app_path, shortcut_info, | 260 WebAppShortcutCreator shortcut_creator(web_app_path, shortcut_info, |
261 bundle_id); | 261 bundle_id); |
262 return shortcut_creator.CreateShortcut(); | 262 return shortcut_creator.CreateShortcut(); |
263 } | 263 } |
264 | 264 |
| 265 void DeletePlatformShortcuts(const FilePath& profile_path, |
| 266 const std::string& extension_id) { |
| 267 // TODO(benwells): Implement this when shortcuts / weblings are enabled on |
| 268 // mac. |
| 269 } |
| 270 |
265 } // namespace internals | 271 } // namespace internals |
266 } // namespace web_app | 272 } // namespace web_app |
OLD | NEW |