| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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> |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "chrome/browser/profiles/profile.h" | 29 #include "chrome/browser/profiles/profile.h" |
| 30 #include "chrome/browser/sessions/session_types.h" | 30 #include "chrome/browser/sessions/session_types.h" |
| 31 #include "chrome/browser/sessions/tab_restore_service.h" | 31 #include "chrome/browser/sessions/tab_restore_service.h" |
| 32 #include "chrome/browser/sessions/tab_restore_service_factory.h" | 32 #include "chrome/browser/sessions/tab_restore_service_factory.h" |
| 33 #include "chrome/browser/shell_integration.h" | 33 #include "chrome/browser/shell_integration.h" |
| 34 #include "chrome/common/chrome_constants.h" | 34 #include "chrome/common/chrome_constants.h" |
| 35 #include "chrome/common/chrome_notification_types.h" | 35 #include "chrome/common/chrome_notification_types.h" |
| 36 #include "chrome/common/chrome_switches.h" | 36 #include "chrome/common/chrome_switches.h" |
| 37 #include "chrome/common/url_constants.h" | 37 #include "chrome/common/url_constants.h" |
| 38 #include "content/browser/browser_thread.h" | 38 #include "content/browser/browser_thread.h" |
| 39 #include "content/common/notification_service.h" | 39 #include "content/public/browser/notification_source.h" |
| 40 #include "googleurl/src/gurl.h" | 40 #include "googleurl/src/gurl.h" |
| 41 #include "grit/chromium_strings.h" | 41 #include "grit/chromium_strings.h" |
| 42 #include "grit/generated_resources.h" | 42 #include "grit/generated_resources.h" |
| 43 #include "third_party/skia/include/core/SkBitmap.h" | 43 #include "third_party/skia/include/core/SkBitmap.h" |
| 44 #include "ui/base/l10n/l10n_util.h" | 44 #include "ui/base/l10n/l10n_util.h" |
| 45 #include "ui/gfx/codec/png_codec.h" | 45 #include "ui/gfx/codec/png_codec.h" |
| 46 #include "ui/gfx/icon_util.h" | 46 #include "ui/gfx/icon_util.h" |
| 47 | 47 |
| 48 | 48 |
| 49 namespace { | 49 namespace { |
| (...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 795 if ((*item)->data().get() && | 795 if ((*item)->data().get() && |
| 796 gfx::PNGCodec::Decode((*item)->data()->front(), | 796 gfx::PNGCodec::Decode((*item)->data()->front(), |
| 797 (*item)->data()->size(), | 797 (*item)->data()->size(), |
| 798 &icon_bitmap)) { | 798 &icon_bitmap)) { |
| 799 FilePath icon_path; | 799 FilePath icon_path; |
| 800 if (CreateIconFile(icon_bitmap, icon_dir_, &icon_path)) | 800 if (CreateIconFile(icon_bitmap, icon_dir_, &icon_path)) |
| 801 (*item)->SetIcon(icon_path.value(), 0, true); | 801 (*item)->SetIcon(icon_path.value(), 0, true); |
| 802 } | 802 } |
| 803 } | 803 } |
| 804 } | 804 } |
| OLD | NEW |