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

Unified Diff: chrome/browser/themes/theme_service_mac.mm

Issue 2403853002: cocoa browser: remove remaining non-MD code (Closed)
Patch Set: git cl format Created 4 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
« no previous file with comments | « chrome/browser/themes/theme_properties.h ('k') | chrome/browser/ui/cocoa/background_gradient_view.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/themes/theme_service_mac.mm
diff --git a/chrome/browser/themes/theme_service_mac.mm b/chrome/browser/themes/theme_service_mac.mm
index 252cc4ba447411fe3b652db4842d228e62054278..16dd6724ab5c6e0103f4b802fa40f6763984f068 100644
--- a/chrome/browser/themes/theme_service_mac.mm
+++ b/chrome/browser/themes/theme_service_mac.mm
@@ -256,34 +256,6 @@ void HSLToHSB(const color_utils::HSL& hsl, CGFloat* h, CGFloat* s, CGFloat* b) {
// Note that we are not leaking when we assign a retained object to
// |gradient|; in all cases we cache it before we return.
switch (id) {
- case Properties::GRADIENT_FRAME_INCOGNITO:
- case Properties::GRADIENT_FRAME_INCOGNITO_INACTIVE: {
- // TODO(avi): can we simplify this?
- BOOL active = id == Properties::GRADIENT_FRAME_INCOGNITO;
- NSColor* base_color = [NSColor colorWithCalibratedRed:83/255.0
- green:108.0/255.0
- blue:140/255.0
- alpha:1.0];
-
- NSColor *start_color =
- [base_color gtm_colorAdjustedFor:GTMColorationBaseMidtone
- faded:!active];
- NSColor *end_color =
- [base_color gtm_colorAdjustedFor:GTMColorationBaseShadow
- faded:!active];
-
- if (!active) {
- start_color = [start_color gtm_colorByAdjustingLuminance:0.1
- saturation:0.5];
- end_color = [end_color gtm_colorByAdjustingLuminance:0.1
- saturation:0.5];
- }
-
- gradient = [[NSGradient alloc] initWithStartingColor:start_color
- endingColor:end_color];
- break;
- }
-
case Properties::GRADIENT_TOOLBAR:
case Properties::GRADIENT_TOOLBAR_INACTIVE: {
NSColor* base_color = [NSColor colorWithCalibratedWhite:0.2 alpha:1.0];
« no previous file with comments | « chrome/browser/themes/theme_properties.h ('k') | chrome/browser/ui/cocoa/background_gradient_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698