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

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

Issue 2029893002: [Mac][Material Design] Fix regression with infobar border. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm
diff --git a/chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm b/chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm
index 4bf8cb26542e46ac4503bf78b12d0c09f23f066e..f00e1d46082c548b4d6379a102486160a1e06e74 100644
--- a/chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm
+++ b/chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm
@@ -52,14 +52,10 @@
if (!themeProvider)
return [NSColor blackColor];
- if (!ui::MaterialDesignController::IsModeMaterial()) {
- BOOL active = [[self window] isMainWindow];
- return themeProvider->GetNSColor(
- active ? ThemeProperties::COLOR_TOOLBAR_STROKE :
- ThemeProperties::COLOR_TOOLBAR_STROKE_INACTIVE);
- }
+ BOOL active = [[self window] isMainWindow];
return themeProvider->GetNSColor(
- ThemeProperties::COLOR_DETACHED_BOOKMARK_BAR_SEPARATOR);
+ active ? ThemeProperties::COLOR_TOOLBAR_STROKE :
+ ThemeProperties::COLOR_TOOLBAR_STROKE_INACTIVE);
}
- (void)drawRect:(NSRect)rect {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698