Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Unified Diff: trunk/src/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc

Issue 24262008: Revert 224473 "Remove dependency on ui::ScaleFactor from ui/gfx" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « trunk/src/chrome/browser/ui/webui/ntp/ntp_login_handler.cc ('k') | trunk/src/chrome/common/badge_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc
===================================================================
--- trunk/src/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc (revision 224498)
+++ trunk/src/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc (working copy)
@@ -416,8 +416,7 @@
const gfx::ImageSkia& icon,
ui::ScaleFactor icon_scale_factor,
base::DictionaryValue* network_info) {
- gfx::ImageSkiaRep image_rep =
- icon.GetRepresentation(ui::GetImageScale(icon_scale_factor));
+ gfx::ImageSkiaRep image_rep = icon.GetRepresentation(icon_scale_factor);
std::string icon_url =
icon.isNull() ? "" : webui::GetBitmapDataUrl(image_rep.sk_bitmap());
network_info->SetString(kNetworkInfoKeyIconURL, icon_url);
@@ -1218,7 +1217,7 @@
gfx::ImageSkia* icon =
ResourceBundle::GetSharedInstance().GetImageSkiaNamed(resource_id);
gfx::ImageSkiaRep image_rep = icon->GetRepresentation(
- ui::GetImageScale(web_ui()->GetDeviceScaleFactor()));
+ web_ui()->GetDeviceScaleFactor());
return webui::GetBitmapDataUrl(image_rep.sk_bitmap());
}
« no previous file with comments | « trunk/src/chrome/browser/ui/webui/ntp/ntp_login_handler.cc ('k') | trunk/src/chrome/common/badge_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698