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

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

Issue 10837034: Remove packaged app Windows shortcuts when app is uninstalled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated comments Created 8 years, 4 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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 [[NSWorkspace sharedWorkspace] 244 [[NSWorkspace sharedWorkspace]
245 selectFile:base::mac::FilePathToNSString(generated_bundle) 245 selectFile:base::mac::FilePathToNSString(generated_bundle)
246 inFileViewerRootedAtPath:nil]; 246 inFileViewerRootedAtPath:nil];
247 } 247 }
248 248
249 } // namespace 249 } // namespace
250 250
251 namespace web_app { 251 namespace web_app {
252 namespace internals { 252 namespace internals {
253 253
254 bool CreatePlatformShortcut( 254 bool CreatePlatformShortcuts(
255 const FilePath& web_app_path, 255 const FilePath& web_app_path,
256 const FilePath& profile_path,
257 const ShellIntegration::ShortcutInfo& shortcut_info) { 256 const ShellIntegration::ShortcutInfo& shortcut_info) {
258 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE)); 257 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE));
259 string16 bundle_id = UTF8ToUTF16(base::mac::BaseBundleID()); 258 string16 bundle_id = UTF8ToUTF16(base::mac::BaseBundleID());
260 WebAppShortcutCreator shortcut_creator(web_app_path, shortcut_info, 259 WebAppShortcutCreator shortcut_creator(web_app_path, shortcut_info,
261 bundle_id); 260 bundle_id);
262 return shortcut_creator.CreateShortcut(); 261 return shortcut_creator.CreateShortcut();
263 } 262 }
264 263
265 void DeletePlatformShortcuts(const FilePath& profile_path, 264 void DeletePlatformShortcuts(
266 const std::string& extension_id) { 265 const FilePath& web_app_path,
266 const ShellIntegration::ShortcutInfo& shortcut_info) {
267 // TODO(benwells): Implement this when shortcuts / weblings are enabled on 267 // TODO(benwells): Implement this when shortcuts / weblings are enabled on
268 // mac. 268 // mac.
269 } 269 }
270 270
271 } // namespace internals 271 } // namespace internals
272 } // namespace web_app 272 } // namespace web_app
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698