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

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

Issue 10911169: Setup field trial for one-click signin inforbar. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 3 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 91445789fbddf415559f7d613079ba4c387156f8..7591d8433596a05d1114bc75f8cd06ff162c9304 100644
--- a/chrome/browser/ui/views/infobars/infobar_background.cc
+++ b/chrome/browser/ui/views/infobars/infobar_background.cc
@@ -4,17 +4,14 @@
#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(InfoBarDelegate::Type infobar_type)
- : separator_color_(SK_ColorBLACK),
- top_color_(GetInfoBarTopColor(infobar_type)),
- bottom_color_(GetInfoBarBottomColor(infobar_type)) {
+InfoBarBackground::InfoBarBackground(SkColor top, SkColor bottom)
+ : separator_color_(SK_ColorBLACK), top_color_(top), bottom_color_(bottom) {
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