Index: chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc |
diff --git a/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc |
index 6c19b832edd1cce08dfe083264fb7650f9a98e22..e1bb3799aee0edbad5bbd053724ca355e36f8d34 100644 |
--- a/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc |
+++ b/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc |
@@ -433,7 +433,8 @@ class NetworkInfoDictionary { |
private: |
void SetIcon(const gfx::ImageSkia& icon, |
ui::ScaleFactor icon_scale_factor) { |
- gfx::ImageSkiaRep image_rep = icon.GetRepresentation(icon_scale_factor); |
+ gfx::ImageSkiaRep image_rep |
+ = icon.GetRepresentation(ui::GetImageScale(icon_scale_factor)); |
icon_url_ = icon.isNull() ? "" : webui::GetBitmapDataUrl( |
image_rep.sk_bitmap()); |
} |
@@ -1281,7 +1282,7 @@ std::string InternetOptionsHandler::GetIconDataUrl(int resource_id) const { |
gfx::ImageSkia* icon = |
ResourceBundle::GetSharedInstance().GetImageSkiaNamed(resource_id); |
gfx::ImageSkiaRep image_rep = icon->GetRepresentation( |
- web_ui()->GetDeviceScaleFactor()); |
+ ui::GetImageScale(web_ui()->GetDeviceScaleFactor())); |
return webui::GetBitmapDataUrl(image_rep.sk_bitmap()); |
} |