DescriptionFinished swap out of old API
Replaced occurrences of [HyperlinkTextView setMessageAndLink:withLink:
atOffset:font:messageColor:linkColor:] with
[HyperLinkTextView setMessage:withFont:messageColor] and
[HyperLinkTextView addLinkRange:withName:linkColor:]. Removed the
[HyperLinkTextView setMessageAndLink:withLink:...] method.
BUG=253755
TEST=it's very difficult to produce test sequences for most of these changes.
Here is the one sequence I do have:
for sad_tab_view_cocoa.mm: Launch Chrome, run
ps augx | grep “Chrome Helper”
in a Terminal window, create a new tab and go to some page, run the ps...
commands again and figure out the process number of the new Chrome
Helper (the one that wasn’t there before). In a Terminal window type kill -9
<XXX> where <XXX> is the process id of the new Chrome Helper. Confirm
the new tab now shows the sad tab page and that the last line of text reads,
“If you're seeing this frequently, try these suggestions.” with the word
“suggestions” as a clickable link that takes you to the “Aw, Snap!” Chrome
help page.
Committed: https://crrev.com/f14f8f0ee94f50e6c0387c6574f827d294fca301
Cr-Commit-Position: refs/heads/master@{#315054}
Patch Set 1 #Patch Set 2 : Remove unit test for [HyperlinkTextView setMessageAndLink:withLink:atOffset:font:messageColor:linkC… #
Total comments: 6
Patch Set 3 : Fixed formatting issues, changed code to perform string operations in C++ rather than ObjC #Messages
Total messages: 12 (3 generated)
|