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

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

Issue 2019053002: Changed the icons for "Manage people" and sync errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nit Created 4 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/profiles/profile_chooser_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 05aac2fa0e4f4e5be479dedf63fa060c98962432..44f2863a2e3afc0489aab0de057b078e25c597aa 100644
--- a/chrome/browser/ui/views/profiles/new_avatar_button.cc
+++ b/chrome/browser/ui/views/profiles/new_avatar_button.cc
@@ -14,6 +14,7 @@
#include "chrome/browser/profiles/profiles_state.h"
#include "chrome/browser/ui/views/profiles/avatar_button_delegate.h"
#include "chrome/browser/ui/views/profiles/profile_chooser_view.h"
+#include "components/signin/core/common/profile_management_switches.h"
#include "grit/theme_resources.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/canvas.h"
@@ -213,9 +214,15 @@ void NewAvatarButton::Update() {
if (use_generic_button) {
SetImage(views::Button::STATE_NORMAL, generic_avatar_);
} else if (has_auth_error_) {
- SetImage(views::Button::STATE_NORMAL,
- gfx::CreateVectorIcon(gfx::VectorIconId::WARNING, 13,
- gfx::kGoogleYellow700));
+ if (switches::IsMaterialDesignUserMenu()) {
+ SetImage(views::Button::STATE_NORMAL,
+ gfx::CreateVectorIcon(gfx::VectorIconId::SYNC_PROBLEM, 13,
+ gfx::kGoogleRed700));
+ } else {
+ SetImage(views::Button::STATE_NORMAL,
+ gfx::CreateVectorIcon(gfx::VectorIconId::WARNING, 13,
+ gfx::kGoogleYellow700));
+ }
} else {
SetImage(views::Button::STATE_NORMAL, gfx::ImageSkia());
}
« no previous file with comments | « no previous file | chrome/browser/ui/views/profiles/profile_chooser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698