OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include <shellapi.h> | 8 #include <shellapi.h> |
9 #include <shlobj.h> | 9 #include <shlobj.h> |
10 #endif // defined(OS_WIN) | 10 #endif // defined(OS_WIN) |
11 | 11 |
12 #include <algorithm> | 12 #include <algorithm> |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/callback.h" | 16 #include "base/callback.h" |
17 #include "base/file_util.h" | 17 #include "base/file_util.h" |
18 #include "base/md5.h" | 18 #include "base/md5.h" |
19 #include "base/message_loop.h" | 19 #include "base/message_loop.h" |
20 #include "base/path_service.h" | 20 #include "base/path_service.h" |
21 #include "base/thread.h" | 21 #include "base/thread.h" |
22 #include "base/scoped_ptr.h" | 22 #include "base/scoped_ptr.h" |
23 #include "base/utf_string_conversions.h" | 23 #include "base/utf_string_conversions.h" |
24 #include "base/win/windows_version.h" | 24 #include "base/win/windows_version.h" |
25 #include "chrome/browser/browser_thread.h" | 25 #include "chrome/browser/browser_thread.h" |
26 #include "chrome/browser/download/download_util.h" | 26 #include "chrome/browser/download/download_util.h" |
27 #include "chrome/browser/profile.h" | 27 #include "chrome/browser/profiles/profile.h" |
28 #include "chrome/browser/tab_contents/tab_contents.h" | 28 #include "chrome/browser/tab_contents/tab_contents.h" |
29 #include "chrome/common/chrome_constants.h" | 29 #include "chrome/common/chrome_constants.h" |
30 #include "chrome/common/chrome_paths.h" | 30 #include "chrome/common/chrome_paths.h" |
31 #include "chrome/common/chrome_plugin_util.h" | 31 #include "chrome/common/chrome_plugin_util.h" |
32 #include "chrome/common/notification_registrar.h" | 32 #include "chrome/common/notification_registrar.h" |
33 #include "chrome/common/notification_service.h" | 33 #include "chrome/common/notification_service.h" |
34 #include "chrome/common/url_constants.h" | 34 #include "chrome/common/url_constants.h" |
35 #include "chrome/common/web_apps.h" | 35 #include "chrome/common/web_apps.h" |
36 | 36 |
37 #if defined(OS_LINUX) | 37 #if defined(OS_LINUX) |
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 | 756 |
757 void UpdateShortcutForTabContents(TabContents* tab_contents) { | 757 void UpdateShortcutForTabContents(TabContents* tab_contents) { |
758 #if defined(OS_WIN) | 758 #if defined(OS_WIN) |
759 // UpdateShortcutWorker will delete itself when it's done. | 759 // UpdateShortcutWorker will delete itself when it's done. |
760 UpdateShortcutWorker* worker = new UpdateShortcutWorker(tab_contents); | 760 UpdateShortcutWorker* worker = new UpdateShortcutWorker(tab_contents); |
761 worker->Run(); | 761 worker->Run(); |
762 #endif // defined(OS_WIN) | 762 #endif // defined(OS_WIN) |
763 } | 763 } |
764 | 764 |
765 }; // namespace web_app | 765 }; // namespace web_app |
OLD | NEW |