| OLD | NEW |
| 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 #import "ios/chrome/browser/favicon/favicon_attributes_provider.h" | 5 #import "ios/chrome/browser/ui/favicon/favicon_attributes_provider.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/mac/bind_objc_block.h" | 8 #include "base/mac/bind_objc_block.h" |
| 9 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| 11 #include "base/task/cancelable_task_tracker.h" | 11 #include "base/task/cancelable_task_tracker.h" |
| 12 #include "components/favicon/core/fallback_url_util.h" | 12 #include "components/favicon/core/fallback_url_util.h" |
| 13 #include "components/favicon/core/large_icon_service.h" | 13 #include "components/favicon/core/large_icon_service.h" |
| 14 #include "components/favicon_base/fallback_icon_style.h" | 14 #include "components/favicon_base/fallback_icon_style.h" |
| 15 #include "components/favicon_base/favicon_types.h" | 15 #include "components/favicon_base/favicon_types.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 // Always call LargeIconService in case the favicon was updated. | 79 // Always call LargeIconService in case the favicon was updated. |
| 80 CGFloat faviconSize = [UIScreen mainScreen].scale * self.faviconSize; | 80 CGFloat faviconSize = [UIScreen mainScreen].scale * self.faviconSize; |
| 81 CGFloat minFaviconSize = [UIScreen mainScreen].scale * self.minSize; | 81 CGFloat minFaviconSize = [UIScreen mainScreen].scale * self.minSize; |
| 82 self.largeIconService->GetLargeIconOrFallbackStyle( | 82 self.largeIconService->GetLargeIconOrFallbackStyle( |
| 83 URL, minFaviconSize, faviconSize, base::BindBlockArc(faviconBlock), | 83 URL, minFaviconSize, faviconSize, base::BindBlockArc(faviconBlock), |
| 84 &_faviconTaskTracker); | 84 &_faviconTaskTracker); |
| 85 } | 85 } |
| 86 @end | 86 @end |
| OLD | NEW |