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/views/button_drag_utils.cc

Issue 1461923002: Change name of NativeTheme::instance() to make it clear it's web only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NATIVE_THEME_EXPORT for mac Created 5 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 | « ui/native_theme/native_theme_mac_unittest.cc ('k') | ui/views/controls/combobox/combobox.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/button_drag_utils.cc
diff --git a/ui/views/button_drag_utils.cc b/ui/views/button_drag_utils.cc
index cca89ea1eb217f05be760057d0ee7f418cd1f55b..3fb5d12ed61b619b3e246cb0727fea3642b1c87c 100644
--- a/ui/views/button_drag_utils.cc
+++ b/ui/views/button_drag_utils.cc
@@ -47,8 +47,7 @@ void SetDragImage(const GURL& url,
title.empty() ? base::UTF8ToUTF16(url.spec())
: title);
button.SetTextSubpixelRenderingEnabled(false);
- const ui::NativeTheme* theme =
- widget ? widget->GetNativeTheme() : ui::NativeTheme::instance();
+ const ui::NativeTheme* theme = widget->GetNativeTheme();
button.SetTextColor(views::Button::STATE_NORMAL,
theme->GetSystemColor(ui::NativeTheme::kColorId_LabelEnabledColor));
gfx::ShadowValues shadows(
« no previous file with comments | « ui/native_theme/native_theme_mac_unittest.cc ('k') | ui/views/controls/combobox/combobox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698