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

Unified Diff: chrome/browser/ui/views/infobars/infobar_background.cc

Issue 14175017: Remove one-click signin inforbar, since its now replaced with the gaia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 8 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/infobars/infobar_background.cc
diff --git a/chrome/browser/ui/views/infobars/infobar_background.cc b/chrome/browser/ui/views/infobars/infobar_background.cc
index e936e2f2af62d986b3fadb9b914b488970c3f2fa..2257e3657aa07c1ea5392f9a7bfaa4c4f0fb3975 100644
--- a/chrome/browser/ui/views/infobars/infobar_background.cc
+++ b/chrome/browser/ui/views/infobars/infobar_background.cc
@@ -4,14 +4,17 @@
#include "chrome/browser/ui/views/infobars/infobar_background.h"
+#include "chrome/browser/infobars/infobar.h"
#include "chrome/browser/ui/views/infobars/infobar_view.h"
#include "third_party/skia/include/effects/SkGradientShader.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/color_utils.h"
#include "ui/views/view.h"
-InfoBarBackground::InfoBarBackground(SkColor top, SkColor bottom)
- : separator_color_(SK_ColorBLACK), top_color_(top), bottom_color_(bottom) {
+InfoBarBackground::InfoBarBackground(InfoBarDelegate::Type infobar_type)
+ : separator_color_(SK_ColorBLACK),
+ top_color_(GetInfoBarTopColor(infobar_type)),
+ bottom_color_(GetInfoBarBottomColor(infobar_type)) {
SetNativeControlColor(
color_utils::AlphaBlend(top_color_, bottom_color_, 128));
}
« no previous file with comments | « chrome/browser/ui/views/infobars/infobar_background.h ('k') | chrome/browser/ui/views/infobars/infobar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698