commit | 1edd4d0e8d2bb63d19058fe47c326f121bc33a62 | [log] [tgz] |
---|---|---|
author | minch <[email protected]> | Mon Aug 05 19:10:56 2019 |
committer | Commit Bot <[email protected]> | Mon Aug 05 19:10:56 2019 |
tree | 78717e48ecff488cacde0a3e9a898952f4f3cba8 | |
parent | 8e524eacb5a70f21d45f109a94074aeaa4f12af5 [diff] [blame] |
Rename NativeTheme::SystemDarkModeEnabled to ShouldUseDarkColors. Bug: 977430 Change-Id: I35b13019f049ac4f90a3b5add999da0061931a0b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1673966 Reviewed-by: Scott Violet <[email protected]> Reviewed-by: Mustafa Emre Acer <[email protected]> Reviewed-by: Evan Stade <[email protected]> Commit-Queue: Min Chen <[email protected]> Cr-Commit-Position: refs/heads/master@{#684062}
diff --git a/chrome/browser/favicon/favicon_utils.cc b/chrome/browser/favicon/favicon_utils.cc index 81a9cc3c0..19b5793 100644 --- a/chrome/browser/favicon/favicon_utils.cc +++ b/chrome/browser/favicon/favicon_utils.cc
@@ -96,7 +96,7 @@ gfx::Image GetDefaultFavicon() { const ui::NativeTheme* native_theme = ui::NativeTheme::GetInstanceForNativeUi(); - bool is_dark = native_theme && native_theme->SystemDarkModeEnabled(); + bool is_dark = native_theme && native_theme->ShouldUseDarkColors(); int resource_id = is_dark ? IDR_DEFAULT_FAVICON_DARK : IDR_DEFAULT_FAVICON; return ui::ResourceBundle::GetSharedInstance().GetNativeImageNamed( resource_id);