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

Unified Diff: chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm

Issue 22694006: Infobar system refactor. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 2 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/cocoa/infobars/infobar_gradient_view.mm
===================================================================
--- chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm (revision 226624)
+++ chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm (working copy)
@@ -36,8 +36,8 @@
}
- (void)setInfobarType:(InfoBarDelegate::Type)infobarType {
- SkColor topColor = GetInfoBarTopColor(infobarType);
- SkColor bottomColor = GetInfoBarBottomColor(infobarType);
+ SkColor topColor = InfoBar::GetTopColor(infobarType);
+ SkColor bottomColor = InfoBar::GetBottomColor(infobarType);
base::scoped_nsobject<NSGradient> gradient([[NSGradient alloc]
initWithStartingColor:gfx::SkColorToCalibratedNSColor(topColor)
endingColor:gfx::SkColorToCalibratedNSColor(bottomColor)]);

Powered by Google App Engine
This is Rietveld 408576698