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

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

Issue 263403002: Replace OnceOffCreateShortcuts with UpdateShortcutsForAllAppsIfNeeded. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 6 years, 6 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 #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
9 void UpdateShortcutsForAllApps(Profile* profile,
10 const base::Closure& callback) {
11 callback.Run();
12 }
13
8 namespace internals { 14 namespace internals {
9 15
10 bool CreatePlatformShortcuts( 16 bool CreatePlatformShortcuts(
11 const base::FilePath& web_app_path, 17 const base::FilePath& web_app_path,
12 const ShortcutInfo& shortcut_info, 18 const ShortcutInfo& shortcut_info,
13 const extensions::FileHandlersInfo& file_handlers_info, 19 const extensions::FileHandlersInfo& file_handlers_info,
14 const ShortcutLocations& creation_locations, 20 const ShortcutLocations& creation_locations,
15 ShortcutCreationReason creation_reason) { 21 ShortcutCreationReason creation_reason) {
16 return true; 22 return true;
17 } 23 }
18 24
19 void DeletePlatformShortcuts(const base::FilePath& web_app_path, 25 void DeletePlatformShortcuts(const base::FilePath& web_app_path,
20 const ShortcutInfo& shortcut_info) {} 26 const ShortcutInfo& shortcut_info) {}
21 27
22 void UpdatePlatformShortcuts( 28 void UpdatePlatformShortcuts(
23 const base::FilePath& web_app_path, 29 const base::FilePath& web_app_path,
24 const base::string16& old_app_title, 30 const base::string16& old_app_title,
25 const ShortcutInfo& shortcut_info, 31 const ShortcutInfo& shortcut_info,
26 const extensions::FileHandlersInfo& file_handlers_info) {} 32 const extensions::FileHandlersInfo& file_handlers_info) {}
27 33
28 void DeleteAllShortcutsForProfile(const base::FilePath& profile_path) {} 34 void DeleteAllShortcutsForProfile(const base::FilePath& profile_path) {}
29 35
30 } // namespace internals 36 } // namespace internals
31 } // namespace web_app 37 } // namespace web_app
OLDNEW
« no previous file with comments | « chrome/browser/web_applications/web_app.cc ('k') | chrome/browser/web_applications/web_app_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698