Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: chrome/browser/web_applications/web_app_mac.mm

Issue 10698114: Remove app shortcuts when app is uninstalled on Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mac fix Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/web_applications/web_app_linux.cc ('k') | chrome/browser/web_applications/web_app_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698