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

Unified Diff: ui/base/cocoa/controls/hyperlink_button_cell.mm

Issue 1842663003: Mac: Replace uses of deprecated NSNoUnderlineStyle and NSSingleUnderlineStyle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20160329-Mac-DeploymentTarget
Patch Set: cl format Created 4 years, 9 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 | « ui/app_list/cocoa/app_list_view_controller.mm ('k') | ui/base/cocoa/controls/hyperlink_text_view.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/cocoa/controls/hyperlink_button_cell.mm
diff --git a/ui/base/cocoa/controls/hyperlink_button_cell.mm b/ui/base/cocoa/controls/hyperlink_button_cell.mm
index e67e60db12eb2f27bade8d3ebf90328a32ec2da3..754be72f613bc1eaeb6ad0fa274dd5c036bf27cf 100644
--- a/ui/base/cocoa/controls/hyperlink_button_cell.mm
+++ b/ui/base/cocoa/controls/hyperlink_button_cell.mm
@@ -91,7 +91,7 @@ using hyperlink_button_cell::UnderlineBehavior;
// Creates the NSDictionary of attributes for the attributed string.
- (NSDictionary*)linkAttributes {
- NSUInteger underlineMask = NSNoUnderlineStyle;
+ NSUInteger underlineMask = NSUnderlineStyleNone;
if (underlineBehavior_ == UnderlineBehavior::ALWAYS ||
(mouseIsInside_ && [self isEnabled] &&
underlineBehavior_ == UnderlineBehavior::ON_HOVER)) {
« no previous file with comments | « ui/app_list/cocoa/app_list_view_controller.mm ('k') | ui/base/cocoa/controls/hyperlink_text_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698