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 "apps/shortcut_manager.h" | 5 #include "apps/shortcut_manager.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/string16.h" | 9 #include "base/string16.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "chrome/browser/shell_integration.h" | 11 #include "chrome/browser/shell_integration.h" |
12 #include "chrome/browser/ui/web_applications/web_app_ui.h" | 12 #include "chrome/browser/ui/web_applications/web_app_ui.h" |
13 #include "chrome/browser/web_applications/web_app.h" | 13 #include "chrome/browser/web_applications/web_app.h" |
14 #include "chrome/common/chrome_notification_types.h" | 14 #include "chrome/common/chrome_notification_types.h" |
15 #include "content/public/browser/notification_details.h" | 15 #include "content/public/browser/notification_details.h" |
16 #include "content/public/browser/notification_source.h" | 16 #include "content/public/browser/notification_source.h" |
17 | 17 |
18 using extensions::Extension; | 18 using extensions::Extension; |
19 | 19 |
20 namespace { | 20 namespace { |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 } | 89 } |
90 | 90 |
91 void ShortcutManager::DeleteApplicationShortcuts( | 91 void ShortcutManager::DeleteApplicationShortcuts( |
92 const Extension* extension) { | 92 const Extension* extension) { |
93 ShellIntegration::ShortcutInfo delete_info = | 93 ShellIntegration::ShortcutInfo delete_info = |
94 web_app::ShortcutInfoForExtensionAndProfile(extension, profile_); | 94 web_app::ShortcutInfoForExtensionAndProfile(extension, profile_); |
95 web_app::DeleteAllShortcuts(delete_info); | 95 web_app::DeleteAllShortcuts(delete_info); |
96 } | 96 } |
97 | 97 |
98 } // namespace apps | 98 } // namespace apps |
OLD | NEW |