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

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

Issue 2729623002: Update vector icons in browser profiles code (bubble, etc.) to structs. (Closed)
Patch Set: review 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..924aacb104508f73fe387aca624153e943bf3d30 100644
--- a/chrome/browser/ui/views/profiles/new_avatar_button.cc
+++ b/chrome/browser/ui/views/profiles/new_avatar_button.cc
@@ -7,6 +7,7 @@
#include <utility>
#include "build/build_config.h"
+#include "chrome/app/vector_icons/vector_icons.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/profile_attributes_entry.h"
#include "chrome/browser/profiles/profile_manager.h"
@@ -20,7 +21,7 @@
#include "ui/gfx/color_palette.h"
#include "ui/gfx/geometry/vector2d.h"
#include "ui/gfx/paint_vector_icon.h"
-#include "ui/gfx/vector_icons_public.h"
+#include "ui/vector_icons/vector_icons.h"
#include "ui/views/border.h"
#include "ui/views/controls/button/label_button_border.h"
#include "ui/views/painter.h"
@@ -202,12 +203,11 @@ void NewAvatarButton::Update() {
} else if (error_controller_.HasAvatarError()) {
if (switches::IsMaterialDesignUserMenu()) {
SetImage(views::Button::STATE_NORMAL,
- gfx::CreateVectorIcon(gfx::VectorIconId::SYNC_PROBLEM, 16,
- gfx::kGoogleRed700));
+ gfx::CreateVectorIcon(kSyncProblemIcon, 16, gfx::kGoogleRed700));
} else {
- SetImage(views::Button::STATE_NORMAL,
- gfx::CreateVectorIcon(gfx::VectorIconId::WARNING, 13,
- gfx::kGoogleYellow700));
+ SetImage(
+ views::Button::STATE_NORMAL,
+ gfx::CreateVectorIcon(ui::kWarningIcon, 13, gfx::kGoogleYellow700));
}
} else {
SetImage(views::Button::STATE_NORMAL, gfx::ImageSkia());

Powered by Google App Engine
This is Rietveld 408576698