| OLD | NEW |
| 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 #include "base/environment.h" | 7 #include "base/environment.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "chrome/browser/shell_integration_linux.h" | 9 #include "chrome/browser/shell_integration_linux.h" |
| 10 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
| 11 | 11 |
| 12 namespace web_app { | 12 namespace web_app { |
| 13 | 13 |
| 14 void UpdateShortcutsForAllApps(Profile* profile, |
| 15 const base::Closure& callback) { |
| 16 callback.Run(); |
| 17 } |
| 18 |
| 14 namespace internals { | 19 namespace internals { |
| 15 | 20 |
| 16 bool CreatePlatformShortcuts( | 21 bool CreatePlatformShortcuts( |
| 17 const base::FilePath& web_app_path, | 22 const base::FilePath& web_app_path, |
| 18 const ShortcutInfo& shortcut_info, | 23 const ShortcutInfo& shortcut_info, |
| 19 const extensions::FileHandlersInfo& file_handlers_info, | 24 const extensions::FileHandlersInfo& file_handlers_info, |
| 20 const ShortcutLocations& creation_locations, | 25 const ShortcutLocations& creation_locations, |
| 21 ShortcutCreationReason /*creation_reason*/) { | 26 ShortcutCreationReason /*creation_reason*/) { |
| 22 #if !defined(OS_CHROMEOS) | 27 #if !defined(OS_CHROMEOS) |
| 23 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE)); | 28 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE)); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 68 |
| 64 void DeleteAllShortcutsForProfile(const base::FilePath& profile_path) { | 69 void DeleteAllShortcutsForProfile(const base::FilePath& profile_path) { |
| 65 #if !defined(OS_CHROMEOS) | 70 #if !defined(OS_CHROMEOS) |
| 66 shell_integration_linux::DeleteAllDesktopShortcuts(profile_path); | 71 shell_integration_linux::DeleteAllDesktopShortcuts(profile_path); |
| 67 #endif | 72 #endif |
| 68 } | 73 } |
| 69 | 74 |
| 70 } // namespace internals | 75 } // namespace internals |
| 71 | 76 |
| 72 } // namespace web_app | 77 } // namespace web_app |
| OLD | NEW |