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

Unified Diff: chrome/browser/ui/views/profiles/profile_chooser_view.cc

Issue 2382443007: Clean up NativeTheme (particularly CommonTheme). (Closed)
Patch Set: two slight fixes Created 4 years, 3 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
Index: chrome/browser/ui/views/profiles/profile_chooser_view.cc
diff --git a/chrome/browser/ui/views/profiles/profile_chooser_view.cc b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
index b6a9c1cd47887091bf6e63d52c509a070ee7e829..7039777e9d73747b580ed6e10b28b17d87e20baf 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
@@ -220,8 +220,7 @@ class BackgroundColorHoverButton : public views::LabelButton {
void OnPaint(gfx::Canvas* canvas) override {
if ((state() == STATE_PRESSED) ||
(state() == STATE_HOVERED)) {
- canvas->DrawColor(GetNativeTheme()->GetSystemColor(
- ui::NativeTheme::kColorId_ButtonHoverBackgroundColor));
Evan Stade 2016/09/30 18:02:36 one reason this was confusing is because it's not
tdanderson 2016/09/30 21:00:56 Acknowledged. So should a TODO be then to replace
Evan Stade 2016/09/30 22:18:59 I did put a TODO in the cocoa version of this code
+ canvas->DrawColor(SkColorSetRGB(0xEA, 0xEA, 0xEA));
}
LabelButton::OnPaint(canvas);
}

Powered by Google App Engine
This is Rietveld 408576698