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

Side by Side Diff: chrome/browser/web_applications/web_app_chromeos.cc

Issue 2703283005: Destroy web_app::ShortcutInfo on UI thread (Closed)
Patch Set: +TestBrowserThreadBundle Created 3 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "chrome/browser/web_applications/web_app.h" 5 #include "chrome/browser/web_applications/web_app.h"
6 6
7 namespace web_app { 7 namespace web_app {
8 8
9 void UpdateShortcutsForAllApps(Profile* profile, 9 void UpdateShortcutsForAllApps(Profile* profile,
10 const base::Closure& callback) { 10 const base::Closure& callback) {
11 callback.Run(); 11 callback.Run();
12 } 12 }
13 13
14 namespace internals { 14 namespace internals {
15 15
16 bool CreatePlatformShortcuts( 16 bool CreatePlatformShortcuts(const base::FilePath& web_app_path,
17 const base::FilePath& web_app_path, 17 const ShortcutInfo& shortcut_info,
18 std::unique_ptr<ShortcutInfo> shortcut_info, 18 const ShortcutLocations& creation_locations,
19 const ShortcutLocations& creation_locations, 19 ShortcutCreationReason creation_reason) {
20 ShortcutCreationReason creation_reason) {
21 return true; 20 return true;
22 } 21 }
23 22
24 void DeletePlatformShortcuts(const base::FilePath& web_app_path, 23 void DeletePlatformShortcuts(const base::FilePath& web_app_path,
25 std::unique_ptr<ShortcutInfo> shortcut_info) {} 24 const ShortcutInfo& shortcut_info) {}
26 25
27 void UpdatePlatformShortcuts(const base::FilePath& web_app_path, 26 void UpdatePlatformShortcuts(const base::FilePath& web_app_path,
28 const base::string16& old_app_title, 27 const base::string16& old_app_title,
29 std::unique_ptr<ShortcutInfo> shortcut_info) {} 28 const ShortcutInfo& shortcut_info) {}
30 29
31 void DeleteAllShortcutsForProfile(const base::FilePath& profile_path) {} 30 void DeleteAllShortcutsForProfile(const base::FilePath& profile_path) {}
32 31
33 } // namespace internals 32 } // namespace internals
34 } // namespace web_app 33 } // namespace web_app
OLDNEW
« no previous file with comments | « chrome/browser/web_applications/web_app.cc ('k') | chrome/browser/web_applications/web_app_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698