commit | ef4a1b5fae764f3b9c19767ab9031cedfae915db | [log] [tgz] |
---|---|---|
author | Tom <tluk@chromium.org> | Tue Apr 06 17:29:45 2021 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Apr 06 17:29:45 2021 |
tree | a526e03785523b2a9cee7fe0631fac9fd4884cf2 | |
parent | 2e4b735aee8fcec1ed601ffbe0b4691938cf4c1d [diff] |
Eliminate call to GetNativeTheme from AppMenu::ZoomView's constructor This call eliminates the call to GetNativeTheme() from the AppMenu::ZoomView constructor. This was needed as the font list needed to be set for zoom label width calculations to compute correctly. Setting the font list has been moved into the constructor and computations requiring color have been left in OnThemeChanged(). This prevents the call to GetNativeTheme() falling through to the global NativeTheme accessor which we are in the process of removing. Bug: 1056944 Change-Id: Ia6872c08122bf383fede568182cbf59aeadb88aa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2806304 Reviewed-by: Peter Boström <pbos@chromium.org> Commit-Queue: Thomas Lukaszewicz <tluk@chromium.org> Cr-Commit-Position: refs/heads/master@{#869596}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.