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

Unified Diff: chrome/browser/ui/startup/session_crashed_infobar_delegate.cc

Issue 2711623003: Update infobars to use VectorIcon struct instead of VectorIconId. (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/startup/session_crashed_infobar_delegate.cc
diff --git a/chrome/browser/ui/startup/session_crashed_infobar_delegate.cc b/chrome/browser/ui/startup/session_crashed_infobar_delegate.cc
index b9e510faa0a5c0c02e77ff91081ea04f4555dee6..1bf73f7ecf1d3faa037d384af840d5515854fdcc 100644
--- a/chrome/browser/ui/startup/session_crashed_infobar_delegate.cc
+++ b/chrome/browser/ui/startup/session_crashed_infobar_delegate.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/ui/startup/session_crashed_infobar_delegate.h"
#include "build/build_config.h"
+#include "chrome/app/vector_icons/vector_icons.h"
#include "chrome/browser/infobars/infobar_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/search/search.h"
@@ -21,7 +22,6 @@
#include "content/public/browser/dom_storage_context.h"
#include "content/public/browser/storage_partition.h"
#include "ui/base/l10n/l10n_util.h"
-#include "ui/gfx/vector_icons_public.h"
// static
void SessionCrashedInfoBarDelegate::Create(Browser* browser) {
@@ -62,8 +62,8 @@ SessionCrashedInfoBarDelegate::GetIdentifier() const {
return SESSION_CRASHED_INFOBAR_DELEGATE;
}
-gfx::VectorIconId SessionCrashedInfoBarDelegate::GetVectorIconId() const {
- return gfx::VectorIconId::SAD_TAB;
+const gfx::VectorIcon& SessionCrashedInfoBarDelegate::GetVectorIcon() const {
+ return kSadTabIcon;
}
base::string16 SessionCrashedInfoBarDelegate::GetMessageText() const {

Powered by Google App Engine
This is Rietveld 408576698