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

Unified Diff: chrome/browser/ui/cocoa/autofill/autofill_notification_controller.mm

Issue 1364113003: Only (and always) put URLs in NSLinkAttributeName. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@infobar1
Patch Set: stray deletion Created 5 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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/autofill/password_generation_popup_view_cocoa.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/autofill/autofill_notification_controller.mm
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_notification_controller.mm b/chrome/browser/ui/cocoa/autofill/autofill_notification_controller.mm
index 93590e30af1990ac0c2c141009ec1559e0a99c67..0246250ce0bd50ba3483b3912e50608d57f27a4e 100644
--- a/chrome/browser/ui/cocoa/autofill/autofill_notification_controller.mm
+++ b/chrome/browser/ui/cocoa/autofill/autofill_notification_controller.mm
@@ -86,11 +86,11 @@
withFont:[NSFont labelFontOfSize:[[textview_ font] pointSize]]
messageColor:textColor];
if (!notification->link_range().is_empty()) {
+ linkURL_ = notification->link_url();
[textview_ setDelegate:self];
[textview_ addLinkRange:notification->link_range().ToNSRange()
- withName:self
+ withURL:base::SysUTF8ToNSString(linkURL_.spec())
linkColor:[NSColor blueColor]];
- linkURL_ = notification->link_url();
}
tooltipController_.reset([[AutofillTooltipController alloc]
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/autofill/password_generation_popup_view_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698