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_win.h" | 5 #include "chrome/browser/web_applications/web_app_win.h" |
6 | 6 |
7 #include <shlobj.h> | 7 #include <shlobj.h> |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/files/file_enumerator.h" | 13 #include "base/files/file_enumerator.h" |
14 #include "base/files/file_util.h" | 14 #include "base/files/file_util.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/md5.h" | 17 #include "base/md5.h" |
18 #include "base/path_service.h" | 18 #include "base/path_service.h" |
19 #include "base/strings/string16.h" | 19 #include "base/strings/string16.h" |
20 #include "base/strings/string_piece.h" | 20 #include "base/strings/string_piece.h" |
21 #include "base/strings/stringprintf.h" | 21 #include "base/strings/stringprintf.h" |
22 #include "base/strings/utf_string_conversions.h" | 22 #include "base/strings/utf_string_conversions.h" |
23 #include "base/threading/sequenced_worker_pool.h" | |
24 #include "base/win/shortcut.h" | 23 #include "base/win/shortcut.h" |
25 #include "base/win/windows_version.h" | 24 #include "base/win/windows_version.h" |
26 #include "chrome/browser/profiles/profile.h" | 25 #include "chrome/browser/profiles/profile.h" |
27 #include "chrome/browser/shell_integration_win.h" | 26 #include "chrome/browser/shell_integration_win.h" |
28 #include "chrome/browser/web_applications/update_shortcut_worker_win.h" | 27 #include "chrome/browser/web_applications/update_shortcut_worker_win.h" |
29 #include "chrome/common/chrome_switches.h" | 28 #include "chrome/common/chrome_switches.h" |
30 #include "chrome/installer/util/browser_distribution.h" | 29 #include "chrome/installer/util/browser_distribution.h" |
31 #include "chrome/installer/util/shell_util.h" | 30 #include "chrome/installer/util/shell_util.h" |
32 #include "chrome/installer/util/util_constants.h" | 31 #include "chrome/installer/util/util_constants.h" |
33 #include "content/public/browser/browser_thread.h" | 32 #include "content/public/browser/browser_thread.h" |
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
618 | 617 |
619 } // namespace internals | 618 } // namespace internals |
620 | 619 |
621 void UpdateShortcutForTabContents(content::WebContents* web_contents) { | 620 void UpdateShortcutForTabContents(content::WebContents* web_contents) { |
622 // UpdateShortcutWorker will delete itself when it's done. | 621 // UpdateShortcutWorker will delete itself when it's done. |
623 UpdateShortcutWorker* worker = new UpdateShortcutWorker(web_contents); | 622 UpdateShortcutWorker* worker = new UpdateShortcutWorker(web_contents); |
624 worker->Run(); | 623 worker->Run(); |
625 } | 624 } |
626 | 625 |
627 } // namespace web_app | 626 } // namespace web_app |
OLD | NEW |