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

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

Issue 1845343005: Makes MaterialDesignController initialization explicit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | ui/base/material_design/material_design_controller.cc » ('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 1254e592c25df24251529da8da6a34c5ca75ae2d..953c41e26677531086906f68d701d7472fab2b13 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
@@ -78,10 +78,10 @@ void ChromeBrowserMainExtraPartsViewsLinux::PreEarlyInitialization() {
void ChromeBrowserMainExtraPartsViewsLinux::ToolkitInitialized() {
ChromeBrowserMainExtraPartsViews::ToolkitInitialized();
Evan Stade 2016/04/01 17:03:20 do you still need this?
varkha 2016/04/01 18:36:22 No, it is a NOP.
- views::LinuxUI::instance()->Initialize();
}
void ChromeBrowserMainExtraPartsViewsLinux::PreCreateThreads() {
+ views::LinuxUI::instance()->Initialize();
Evan Stade 2016/04/01 17:03:20 This seems wrong. According to documentation, this
varkha 2016/04/01 18:36:22 Yes, this is probably a non-starter although I cou
varkha 2016/04/01 19:09:03 PTAL at the last patch set if you think that this
ChromeBrowserMainExtraPartsViews::PreCreateThreads();
views::LinuxUI::instance()->UpdateDeviceScaleFactor(
gfx::Screen::GetScreen()->GetPrimaryDisplay().device_scale_factor());
« no previous file with comments | « no previous file | ui/base/material_design/material_design_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698