| Index: chrome/browser/installable/installable_manager.cc
|
| diff --git a/chrome/browser/installable/installable_manager.cc b/chrome/browser/installable/installable_manager.cc
|
| index b0bf4496513b77bdd42977cfe2e53435a498d2dc..83a2288a66c01cbae40d76ee8171b9bd30d7315b 100644
|
| --- a/chrome/browser/installable/installable_manager.cc
|
| +++ b/chrome/browser/installable/installable_manager.cc
|
| @@ -177,7 +177,16 @@ InstallableStatusCode InstallableManager::GetErrorCode(
|
| return icon.error;
|
| }
|
|
|
| - // Do not report badge icon's error because badge icon is optional.
|
| + if (params.fetch_valid_badge_icon) {
|
| + IconProperty& icon = icons_[ParamsForBadgeIcon(params)];
|
| +
|
| + // If the error is NO_ACCEPTABLE_ICON, there is no icon suitable as a badge
|
| + // in the manifest. Ignore this case since we only want to fail the check if
|
| + // there was a suitable badge icon specified and we couldn't fetch it.
|
| + if (icon.error != NO_ERROR_DETECTED && icon.error != NO_ACCEPTABLE_ICON)
|
| + return icon.error;
|
| + }
|
| +
|
| return NO_ERROR_DETECTED;
|
| }
|
|
|
|
|