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

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: Rebase to HEAD. 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 const base::FilePath& web_app_path, 319 const base::FilePath& web_app_path,
320 const ShellIntegration::ShortcutInfo& info) { 320 const ShellIntegration::ShortcutInfo& info) {
321 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE)); 321 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE));
322 322
323 base::FilePath bundle_path = GetAppBundleByExtensionId(info.extension_id); 323 base::FilePath bundle_path = GetAppBundleByExtensionId(info.extension_id);
324 file_util::Delete(bundle_path, true); 324 file_util::Delete(bundle_path, true);
325 } 325 }
326 326
327 void UpdatePlatformShortcuts( 327 void UpdatePlatformShortcuts(
328 const base::FilePath& web_app_path, 328 const base::FilePath& web_app_path,
329 const string16& old_app_title,
329 const ShellIntegration::ShortcutInfo& shortcut_info) { 330 const ShellIntegration::ShortcutInfo& shortcut_info) {
330 // TODO(benwells): Implement this when shortcuts / weblings are enabled on 331 // TODO(benwells): Implement this when shortcuts / weblings are enabled on
331 // mac. 332 // mac.
332 } 333 }
333 334
334 } // namespace internals 335 } // namespace internals
335 336
336 } // namespace web_app 337 } // namespace web_app
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698