Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(379)

Side by Side Diff: components/ntp_tiles/icon_cacher_impl.cc

Issue 2761303002: Move common ImageFetcher component files to core/ (Closed)
Patch Set: Rebased. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/ntp_tiles/BUILD.gn ('k') | components/ntp_tiles/icon_cacher_impl_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "components/ntp_tiles/icon_cacher_impl.h" 5 #include "components/ntp_tiles/icon_cacher_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "components/favicon/core/favicon_service.h" 9 #include "components/favicon/core/favicon_service.h"
10 #include "components/favicon/core/favicon_util.h" 10 #include "components/favicon/core/favicon_util.h"
11 #include "components/favicon_base/favicon_types.h" 11 #include "components/favicon_base/favicon_types.h"
12 #include "components/favicon_base/favicon_util.h" 12 #include "components/favicon_base/favicon_util.h"
13 #include "components/image_fetcher/image_fetcher.h" 13 #include "components/image_fetcher/core/image_fetcher.h"
14 #include "ui/base/resource/resource_bundle.h" 14 #include "ui/base/resource/resource_bundle.h"
15 #include "ui/gfx/geometry/size.h" 15 #include "ui/gfx/geometry/size.h"
16 #include "ui/gfx/image/image.h" 16 #include "ui/gfx/image/image.h"
17 #include "url/gurl.h" 17 #include "url/gurl.h"
18 18
19 namespace ntp_tiles { 19 namespace ntp_tiles {
20 20
21 namespace { 21 namespace {
22 22
23 favicon_base::IconType IconType(const PopularSites::Site& site) { 23 favicon_base::IconType IconType(const PopularSites::Site& site) {
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 bool IconCacherImpl::ProvideDefaultIcon(const PopularSites::Site& site) { 103 bool IconCacherImpl::ProvideDefaultIcon(const PopularSites::Site& site) {
104 if (site.default_icon_resource < 0) { 104 if (site.default_icon_resource < 0) {
105 return false; 105 return false;
106 } 106 }
107 SaveIconForSite(site, ResourceBundle::GetSharedInstance().GetNativeImageNamed( 107 SaveIconForSite(site, ResourceBundle::GetSharedInstance().GetNativeImageNamed(
108 site.default_icon_resource)); 108 site.default_icon_resource));
109 return true; 109 return true;
110 } 110 }
111 111
112 } // namespace ntp_tiles 112 } // namespace ntp_tiles
OLDNEW
« no previous file with comments | « components/ntp_tiles/BUILD.gn ('k') | components/ntp_tiles/icon_cacher_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698