| 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 bc82a94cc6b38f08677be9534fcaa06b0118e35f..218d24a671c0233ce8061de03b3cae7a875abf11 100644
|
| --- a/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc
|
| +++ b/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc
|
| @@ -416,7 +416,8 @@ void SetCommonNetworkInfo(const ManagedState* state,
|
| const gfx::ImageSkia& icon,
|
| ui::ScaleFactor icon_scale_factor,
|
| base::DictionaryValue* network_info) {
|
| - gfx::ImageSkiaRep image_rep = icon.GetRepresentation(icon_scale_factor);
|
| + gfx::ImageSkiaRep image_rep =
|
| + icon.GetRepresentation(ui::GetImageScale(icon_scale_factor));
|
| std::string icon_url =
|
| icon.isNull() ? "" : webui::GetBitmapDataUrl(image_rep.sk_bitmap());
|
| network_info->SetString(kNetworkInfoKeyIconURL, icon_url);
|
| @@ -1217,7 +1218,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());
|
| }
|
|
|
|
|