| 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..803346627d196838106aa765ff7216a8a79a531f 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::GetScaleFactorScale(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::GetScaleFactorScale(web_ui()->GetDeviceScaleFactor()));
|
| return webui::GetBitmapDataUrl(image_rep.sk_bitmap());
|
| }
|
|
|
|
|