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

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

Issue 2708073002: Removing pre-material design menu setting. (Closed)
Patch Set: Replacing functions by variables 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/new_avatar_button.cc
diff --git a/chrome/browser/ui/views/profiles/new_avatar_button.cc b/chrome/browser/ui/views/profiles/new_avatar_button.cc
index 0c58be47f40abfa999d6145aeb05410acc1c74d0..eaf2fa8262c0ddabe23e05ff2eb05b139c2d9365 100644
--- a/chrome/browser/ui/views/profiles/new_avatar_button.cc
+++ b/chrome/browser/ui/views/profiles/new_avatar_button.cc
@@ -200,15 +200,9 @@ void NewAvatarButton::Update() {
if (use_generic_button) {
SetImage(views::Button::STATE_NORMAL, generic_avatar_);
} else if (error_controller_.HasAvatarError()) {
- if (switches::IsMaterialDesignUserMenu()) {
- SetImage(views::Button::STATE_NORMAL,
- gfx::CreateVectorIcon(gfx::VectorIconId::SYNC_PROBLEM, 16,
- gfx::kGoogleRed700));
- } else {
- SetImage(views::Button::STATE_NORMAL,
- gfx::CreateVectorIcon(gfx::VectorIconId::WARNING, 13,
- gfx::kGoogleYellow700));
- }
+ SetImage(views::Button::STATE_NORMAL,
+ gfx::CreateVectorIcon(gfx::VectorIconId::SYNC_PROBLEM, 16,
+ gfx::kGoogleRed700));
} else {
SetImage(views::Button::STATE_NORMAL, gfx::ImageSkia());
}

Powered by Google App Engine
This is Rietveld 408576698