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

Unified Diff: chrome/browser/chromeos/login/username_view.cc

Issue 8909002: views: Convert IsEnabled() to just enabled() since it's just a simple accessor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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/chromeos/login/username_view.cc
diff --git a/chrome/browser/chromeos/login/username_view.cc b/chrome/browser/chromeos/login/username_view.cc
index 69eae551265e05a9c32f85d5848c18959e4801bc..b7a0796fe51f7e344e68cd7cd9de62eed88be43d 100644
--- a/chrome/browser/chromeos/login/username_view.cc
+++ b/chrome/browser/chromeos/login/username_view.cc
@@ -112,7 +112,7 @@ void UsernameView::PaintUsername(const gfx::Rect& bounds) {
// Draw the text.
// Note, direct call of the DrawStringInt method produces the green dots
// along the text perimeter (when the label is place on the white background).
- SkColor text_color = IsEnabled() ? enabled_color() : disabled_color();
+ SkColor text_color = enabled() ? enabled_color() : disabled_color();
SkColor kInvisibleHaloColor = 0x00000000;
canvas.DrawStringWithHalo(GetText(), font(), text_color,
kInvisibleHaloColor, bounds.x() + margin_width_,
« no previous file with comments | « chrome/browser/chromeos/login/take_photo_view.cc ('k') | chrome/browser/chromeos/options/vpn_config_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698