OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/ui/views/apps/chrome_native_app_window_views_win.h" | 5 #include "chrome/browser/ui/views/apps/chrome_native_app_window_views_win.h" |
6 | 6 |
7 #include "apps/app_window.h" | 7 #include "apps/app_window.h" |
8 #include "apps/app_window_registry.h" | 8 #include "apps/app_window_registry.h" |
9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "base/threading/sequenced_worker_pool.h" | 14 #include "base/threading/sequenced_worker_pool.h" |
15 #include "chrome/browser/apps/per_app_settings_service.h" | 15 #include "chrome/browser/apps/per_app_settings_service.h" |
16 #include "chrome/browser/apps/per_app_settings_service_factory.h" | 16 #include "chrome/browser/apps/per_app_settings_service_factory.h" |
17 #include "chrome/browser/jumplist_updater_win.h" | 17 #include "chrome/browser/jumplist_updater_win.h" |
18 #include "chrome/browser/metro_utils/metro_chrome_win.h" | 18 #include "chrome/browser/metro_utils/metro_chrome_win.h" |
19 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
20 #include "chrome/browser/shell_integration.h" | 20 #include "chrome/browser/shell_integration.h" |
21 #include "chrome/browser/ui/web_applications/web_app_ui.h" | |
22 #include "chrome/browser/web_applications/web_app.h" | 21 #include "chrome/browser/web_applications/web_app.h" |
23 #include "chrome/browser/web_applications/web_app_win.h" | 22 #include "chrome/browser/web_applications/web_app_win.h" |
24 #include "chrome/common/chrome_icon_resources_win.h" | 23 #include "chrome/common/chrome_icon_resources_win.h" |
25 #include "chrome/common/chrome_switches.h" | 24 #include "chrome/common/chrome_switches.h" |
26 #include "content/public/browser/browser_thread.h" | 25 #include "content/public/browser/browser_thread.h" |
27 #include "extensions/common/extension.h" | 26 #include "extensions/common/extension.h" |
28 #include "grit/generated_resources.h" | 27 #include "grit/generated_resources.h" |
29 #include "ui/aura/remote_window_tree_host_win.h" | 28 #include "ui/aura/remote_window_tree_host_win.h" |
30 #include "ui/base/l10n/l10n_util.h" | 29 #include "ui/base/l10n/l10n_util.h" |
31 #include "ui/base/win/shell.h" | 30 #include "ui/base/win/shell.h" |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 link->GetCommandLine()->AppendSwitchASCII(switches::kInstallFromWebstore, | 211 link->GetCommandLine()->AppendSwitchASCII(switches::kInstallFromWebstore, |
213 extension->id()); | 212 extension->id()); |
214 | 213 |
215 ShellLinkItemList items; | 214 ShellLinkItemList items; |
216 items.push_back(link); | 215 items.push_back(link); |
217 jumplist_updater.AddTasks(items); | 216 jumplist_updater.AddTasks(items); |
218 } | 217 } |
219 | 218 |
220 jumplist_updater.CommitUpdate(); | 219 jumplist_updater.CommitUpdate(); |
221 } | 220 } |
OLD | NEW |