Index: chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm |
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm b/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm |
index c21981d1a83148c414ad13483af997296d8d6fac..f45e014f0bd4641023ccd98f43feef2ca7dd6992 100644 |
--- a/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm |
+++ b/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm |
@@ -197,11 +197,8 @@ - (CGFloat)drawName:(NSString*)name |
rightAlign:(BOOL)rightAlign |
bounds:(NSRect)bounds |
textYOffset:(CGFloat)textYOffset { |
- // TODO(crbug.com/666189): Use |
- // AutofillPopupLayoutModel::GetValueFontColorForRow() instead and remove |
- // IsWarning() method. |
- NSColor* nameColor = |
- controller_->IsWarning(index) ? [self warningColor] : [self nameColor]; |
+ NSColor* nameColor = skia::SkColorToSRGBNSColor( |
+ controller_->layout_model().GetValueFontColorForRow(index)); |
NSDictionary* nameAttributes = [NSDictionary |
dictionaryWithObjectsAndKeys:controller_->layout_model() |
.GetValueFontListForRow(index) |