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

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

Issue 14993013: Windows: When an app is updated and its name changes, recreate shortcuts. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Respond to reviewer feedback. Created 7 years, 7 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
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/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 const base::FilePath& web_app_path, 336 const base::FilePath& web_app_path,
337 const ShellIntegration::ShortcutInfo& info) { 337 const ShellIntegration::ShortcutInfo& info) {
338 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE)); 338 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE));
339 339
340 base::FilePath bundle_path = GetAppBundleByExtensionId(info.extension_id); 340 base::FilePath bundle_path = GetAppBundleByExtensionId(info.extension_id);
341 file_util::Delete(bundle_path, true); 341 file_util::Delete(bundle_path, true);
342 } 342 }
343 343
344 void UpdatePlatformShortcuts( 344 void UpdatePlatformShortcuts(
345 const base::FilePath& web_app_path, 345 const base::FilePath& web_app_path,
346 const string16& old_app_title,
346 const ShellIntegration::ShortcutInfo& shortcut_info) { 347 const ShellIntegration::ShortcutInfo& shortcut_info) {
347 // TODO(benwells): Implement this when shortcuts / weblings are enabled on 348 // TODO(benwells): Implement this when shortcuts / weblings are enabled on
348 // mac. 349 // mac.
349 } 350 }
350 351
351 } // namespace internals 352 } // namespace internals
352 353
353 } // namespace web_app 354 } // 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