Index: chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java b/chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java |
index 940596453861ee48a1201c40619844869de6ff51..1592310bf4176ccd53450e7a752958ad0f03dd83 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java |
@@ -65,10 +65,12 @@ class WebsiteSettingsPopup implements OnClickListener { |
/** Adds a section, which contains an icon, a headline, and a description. */ |
@CalledByNative |
- private void addSection(Bitmap icon, String headline, String description) { |
+ private void addSection(int enumeratedIconId, String headline, String description) { |
View section = LayoutInflater.from(mContext).inflate(R.layout.website_settings, null); |
ImageView i = (ImageView) section.findViewById(R.id.website_settings_icon); |
- i.setImageBitmap(icon); |
+ int drawableId = ResourceId.mapToDrawableId(enumeratedIconId); |
+ i.setImageResource(drawableId); |
+ |
TextView h = (TextView) section.findViewById(R.id.website_settings_headline); |
h.setText(headline); |
if (TextUtils.isEmpty(headline)) h.setVisibility(View.GONE); |