Chromium Code Reviews| Index: components/favicon/core/favicon_handler.cc |
| diff --git a/components/favicon/core/favicon_handler.cc b/components/favicon/core/favicon_handler.cc |
| index 3befa3491828e4e127d74984f61048540b62d2a7..0929c4eb0f548e6a4d2cfdc7892d7264e133b9a8 100644 |
| --- a/components/favicon/core/favicon_handler.cc |
| +++ b/components/favicon/core/favicon_handler.cc |
| @@ -225,8 +225,7 @@ int FaviconHandler::GetIconTypesFromHandlerType( |
| switch (handler_type) { |
| case FAVICON: |
| return favicon_base::FAVICON; |
| - case TOUCH: // Falls through. |
| - case LARGE: |
| + case TOUCH: |
| return favicon_base::TOUCH_ICON | favicon_base::TOUCH_PRECOMPOSED_ICON; |
| default: |
| NOTREACHED(); |
| @@ -545,6 +544,8 @@ int FaviconHandler::GetMaximalIconSize(favicon_base::IconType icon_type) { |
| #if defined(OS_ANDROID) |
|
huangs
2015/04/30 20:23:41
Can we remove the OS_ANDROID case?
|
| return 192; |
| #else |
| + if (download_largest_icon_) |
| + return 192; |
| return gfx::ImageSkia::GetMaxSupportedScale() * gfx::kFaviconSize; |
| #endif |
| case favicon_base::TOUCH_ICON: |