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

Unified Diff: chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux.cc

Issue 2441043002: [linux] Allow font to use below 1.0f scale (Closed)
Patch Set: Allow font to use below 1.0f scale Created 4 years, 1 month 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 | « chrome/browser/ui/libgtkui/gtk_ui.cc ('k') | ui/views/linux_ui/linux_ui.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux.cc
diff --git a/chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux.cc b/chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux.cc
index be7b34d69ae27012609f833d89fc3d6e28fa28bb..62000cb33adf03814a716f778a20f9ec03127f2b 100644
--- a/chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux.cc
+++ b/chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux.cc
@@ -90,10 +90,10 @@ void ChromeBrowserMainExtraPartsViewsLinux::ToolkitInitialized() {
}
void ChromeBrowserMainExtraPartsViewsLinux::PreCreateThreads() {
+ // Update the device scale factor before initializing views
+ // because its display::Screen instance depends on it.
+ views::LinuxUI::instance()->UpdateDeviceScaleFactor();
ChromeBrowserMainExtraPartsViews::PreCreateThreads();
- views::LinuxUI::instance()->UpdateDeviceScaleFactor(
- display::Screen::GetScreen()->GetPrimaryDisplay().device_scale_factor());
-
views::X11DesktopHandler::get()->AddObserver(this);
}
« no previous file with comments | « chrome/browser/ui/libgtkui/gtk_ui.cc ('k') | ui/views/linux_ui/linux_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698