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

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

Issue 2708073002: Removing pre-material design menu setting. (Closed)
Patch Set: Removing header Created 3 years, 9 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 924aacb104508f73fe387aca624153e943bf3d30..795ca239a216e99c1280e4eaff0747fdef293a11 100644
--- a/chrome/browser/ui/views/profiles/new_avatar_button.cc
+++ b/chrome/browser/ui/views/profiles/new_avatar_button.cc
@@ -201,14 +201,8 @@ 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(kSyncProblemIcon, 16, gfx::kGoogleRed700));
- } else {
- SetImage(
- views::Button::STATE_NORMAL,
- gfx::CreateVectorIcon(ui::kWarningIcon, 13, gfx::kGoogleYellow700));
- }
+ SetImage(views::Button::STATE_NORMAL,
+ gfx::CreateVectorIcon(kSyncProblemIcon, 16, gfx::kGoogleRed700));
} else {
SetImage(views::Button::STATE_NORMAL, gfx::ImageSkia());
}

Powered by Google App Engine
This is Rietveld 408576698