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/extensions/app_shortcut_manager.h" | 5 #include "chrome/browser/extensions/app_shortcut_manager.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "chrome/browser/extensions/image_loader.h" | 12 #include "chrome/browser/extensions/image_loader.h" |
13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 14 #include "chrome/browser/shell_integration.h" |
14 #include "chrome/browser/ui/web_applications/web_app_ui.h" | 15 #include "chrome/browser/ui/web_applications/web_app_ui.h" |
15 #include "chrome/browser/web_applications/web_app.h" | 16 #include "chrome/browser/web_applications/web_app.h" |
16 #include "chrome/common/chrome_notification_types.h" | 17 #include "chrome/common/chrome_notification_types.h" |
17 #include "chrome/common/chrome_switches.h" | 18 #include "chrome/common/chrome_switches.h" |
18 #include "chrome/common/extensions/extension_resource.h" | 19 #include "chrome/common/extensions/extension_resource.h" |
19 #include "content/public/browser/notification_details.h" | 20 #include "content/public/browser/notification_details.h" |
20 #include "content/public/browser/notification_source.h" | 21 #include "content/public/browser/notification_source.h" |
21 #include "grit/theme_resources.h" | 22 #include "grit/theme_resources.h" |
22 #include "skia/ext/image_operations.h" | 23 #include "skia/ext/image_operations.h" |
23 #include "ui/base/resource/resource_bundle.h" | 24 #include "ui/base/resource/resource_bundle.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 } | 64 } |
64 | 65 |
65 void AppShortcutManager::DeleteApplicationShortcuts( | 66 void AppShortcutManager::DeleteApplicationShortcuts( |
66 const Extension* extension) { | 67 const Extension* extension) { |
67 ShellIntegration::ShortcutInfo delete_info = | 68 ShellIntegration::ShortcutInfo delete_info = |
68 web_app::ShortcutInfoForExtensionAndProfile(extension, profile_); | 69 web_app::ShortcutInfoForExtensionAndProfile(extension, profile_); |
69 web_app::DeleteAllShortcuts(delete_info); | 70 web_app::DeleteAllShortcuts(delete_info); |
70 } | 71 } |
71 | 72 |
72 } // namespace extensions | 73 } // namespace extensions |
OLD | NEW |