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

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

Issue 2697663002: Clean up naming of paint-related identifiers (Closed)
Patch Set: Rebase Created 3 years, 10 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 baa1b13382970de78dc8079803885eee1d52639b..ec12345a5ed4b922a61fdbbec6a18ea3f3130757 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
@@ -472,11 +472,11 @@ class EditableProfilePhoto : public views::LabelButton {
gfx::Point center_point = bounds.CenterPoint() + badge_offset_vector;
// Paint the circular background.
- cc::PaintFlags paint;
- paint.setAntiAlias(true);
- paint.setColor(GetNativeTheme()->GetSystemColor(
+ cc::PaintFlags flags;
+ flags.setAntiAlias(true);
+ flags.setColor(GetNativeTheme()->GetSystemColor(
ui::NativeTheme::kColorId_BubbleBackground));
- canvas->DrawCircle(center_point, GetProfileBadgeSize() / 2, paint);
+ canvas->DrawCircle(center_point, GetProfileBadgeSize() / 2, flags);
gfx::VectorIconId icon_id;
int icon_size;
@@ -489,10 +489,10 @@ class EditableProfilePhoto : public views::LabelButton {
icon_color = gfx::kChromeIconGrey;
} else {
// Paint the light blue circle.
- paint.setColor(SkColorSetRGB(0xaf, 0xd9, 0xfc));
+ flags.setColor(SkColorSetRGB(0xaf, 0xd9, 0xfc));
canvas->DrawCircle(
center_point, GetProfileBadgeSize() / 2 - kProfileBadgeWhitePadding,
- paint);
+ flags);
icon_id = profile_->IsChild()
? gfx::VectorIconId::ACCOUNT_CHILD
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_bar_view.cc ('k') | chrome/browser/ui/views/status_bubble_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698