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

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: 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
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();
Evan Stade 2015/11/19 23:29:14 I looked at the call sites and I think |widget| is
+ const ui::NativeTheme* theme = widget->GetNativeTheme();
button.SetTextColor(views::Button::STATE_NORMAL,
theme->GetSystemColor(ui::NativeTheme::kColorId_LabelEnabledColor));
gfx::ShadowValues shadows(

Powered by Google App Engine
This is Rietveld 408576698