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

Unified Diff: chrome/browser/ui/cocoa/toolbar/toolbar_view_cocoa.mm

Issue 2361153002: cocoa browser: remove non-material toolbar support (Closed)
Patch Set: Created 4 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/cocoa/toolbar/toolbar_view_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/toolbar/toolbar_view_cocoa.mm b/chrome/browser/ui/cocoa/toolbar/toolbar_view_cocoa.mm
index 82283f02d9843fbb61f895f78bd0ff85d6c96d98..5e4f5c0e849d9e70dad51792e3b69c51cfd4df9f 100644
--- a/chrome/browser/ui/cocoa/toolbar/toolbar_view_cocoa.mm
+++ b/chrome/browser/ui/cocoa/toolbar/toolbar_view_cocoa.mm
@@ -21,15 +21,6 @@ - (void)drawRect:(NSRect)dirtyRect {
[self drawBackground:dirtyRect];
}
-// Override of |-[BackgroundGradientView strokeColor]|; make it respect opacity.
-- (NSColor*)strokeColor {
- // Only return a transparent color if not Material Design.
- if (!ui::MaterialDesignController::IsModeMaterial()) {
- return [[super strokeColor] colorWithAlphaComponent:[self dividerOpacity]];
- }
- return [super strokeColor];
-}
-
- (BOOL)accessibilityIsIgnored {
return NO;
}

Powered by Google App Engine
This is Rietveld 408576698