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

Unified Diff: ui/webui/web_ui_util.cc

Issue 24175004: Remove dependency on ui::ScaleFactor from ui/gfx (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix new usage of scale in FastShowPickler 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 | « ui/views/win/hwnd_message_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/web_ui_util.cc
diff --git a/ui/webui/web_ui_util.cc b/ui/webui/web_ui_util.cc
index e171da85b4f75eaac929baa63ce69f76ff2370de..1fda351579d5fc8dfba30cdb92d3a4785909928c 100644
--- a/ui/webui/web_ui_util.cc
+++ b/ui/webui/web_ui_util.cc
@@ -96,7 +96,7 @@ bool ParseScaleFactor(const base::StringPiece& identifier,
return false;
}
- *scale_factor = ui::GetScaleFactorFromScale(static_cast<float>(scale));
+ *scale_factor = ui::GetSupportedScaleFactor(static_cast<float>(scale));
return true;
}
« no previous file with comments | « ui/views/win/hwnd_message_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698