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/jumplist_win.h" | 5 #include "chrome/browser/jumplist_win.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <shobjidl.h> | 8 #include <shobjidl.h> |
9 #include <propkey.h> | 9 #include <propkey.h> |
10 #include <propvarutil.h> | 10 #include <propvarutil.h> |
11 | 11 |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/bind.h" | 15 #include "base/bind.h" |
16 #include "base/bind_helpers.h" | 16 #include "base/bind_helpers.h" |
17 #include "base/command_line.h" | 17 #include "base/command_line.h" |
18 #include "base/file_util.h" | 18 #include "base/file_util.h" |
19 #include "base/path_service.h" | 19 #include "base/path_service.h" |
20 #include "base/string_util.h" | 20 #include "base/string_util.h" |
| 21 #include "base/strings/utf_string_conversions.h" |
21 #include "base/threading/thread.h" | 22 #include "base/threading/thread.h" |
22 #include "base/utf_string_conversions.h" | |
23 #include "base/win/scoped_comptr.h" | 23 #include "base/win/scoped_comptr.h" |
24 #include "base/win/scoped_propvariant.h" | 24 #include "base/win/scoped_propvariant.h" |
25 #include "base/win/windows_version.h" | 25 #include "base/win/windows_version.h" |
26 #include "chrome/browser/favicon/favicon_service.h" | 26 #include "chrome/browser/favicon/favicon_service.h" |
27 #include "chrome/browser/favicon/favicon_service_factory.h" | 27 #include "chrome/browser/favicon/favicon_service_factory.h" |
28 #include "chrome/browser/favicon/favicon_types.h" | 28 #include "chrome/browser/favicon/favicon_types.h" |
29 #include "chrome/browser/history/history_service.h" | 29 #include "chrome/browser/history/history_service.h" |
30 #include "chrome/browser/history/page_usage_data.h" | 30 #include "chrome/browser/history/page_usage_data.h" |
31 #include "chrome/browser/history/top_sites.h" | 31 #include "chrome/browser/history/top_sites.h" |
32 #include "chrome/browser/profiles/profile.h" | 32 #include "chrome/browser/profiles/profile.h" |
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
755 } | 755 } |
756 | 756 |
757 void JumpList::CreateIconFiles(const ShellLinkItemList& item_list) { | 757 void JumpList::CreateIconFiles(const ShellLinkItemList& item_list) { |
758 for (ShellLinkItemList::const_iterator item = item_list.begin(); | 758 for (ShellLinkItemList::const_iterator item = item_list.begin(); |
759 item != item_list.end(); ++item) { | 759 item != item_list.end(); ++item) { |
760 base::FilePath icon_path; | 760 base::FilePath icon_path; |
761 if (CreateIconFile((*item)->data(), icon_dir_, &icon_path)) | 761 if (CreateIconFile((*item)->data(), icon_dir_, &icon_path)) |
762 (*item)->SetIcon(icon_path.value(), 0, true); | 762 (*item)->SetIcon(icon_path.value(), 0, true); |
763 } | 763 } |
764 } | 764 } |
OLD | NEW |