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

Issue 887823002: Finished swap out of old API (Closed)

Created:
5 years, 10 months ago by shrike
Modified:
5 years, 10 months ago
Reviewers:
groby-ooo-7-16, Nico
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Finished 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -128 lines) Patch
M chrome/browser/ui/cocoa/infobars/alternate_nav_infobar_controller.mm View 1 2 1 chunk +7 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/confirm_infobar_controller.mm View 1 2 1 chunk +11 lines, -9 lines 0 comments Download
M chrome/browser/ui/cocoa/one_click_signin_view_controller.mm View 1 2 2 chunks +11 lines, -9 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm View 1 chunk +9 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_signin_confirmation_view_controller.mm View 1 chunk +11 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/tab_contents/sad_tab_view_cocoa.mm View 1 chunk +9 lines, -8 lines 0 comments Download
M ui/base/cocoa/controls/hyperlink_text_view.h View 1 chunk +0 lines, -10 lines 0 comments Download
M ui/base/cocoa/controls/hyperlink_text_view.mm View 1 chunk +0 lines, -16 lines 0 comments Download
M ui/base/cocoa/controls/hyperlink_text_view_unittest.mm View 1 1 chunk +0 lines, -58 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
shrike
Here is the remainder of the API swap out changes. You are listed as an ...
5 years, 10 months ago (2015-01-30 22:09:14 UTC) #2
groby-ooo-7-16
Yes, you'll need to add OWNERs that cover all files - I've added thakis@ here, ...
5 years, 10 months ago (2015-01-30 23:08:40 UTC) #4
groby-ooo-7-16
Oh, and FWIW, you can crash the renderer by navigating to chrome://crash - much easier ...
5 years, 10 months ago (2015-01-30 23:11:01 UTC) #5
shrike
groby, hanks for tips about crashing the renderer and 72 char line length. PTAL. https://codereview.chromium.org/887823002/diff/20001/chrome/browser/ui/cocoa/infobars/alternate_nav_infobar_controller.mm ...
5 years, 10 months ago (2015-02-02 17:39:13 UTC) #6
groby-ooo-7-16
c/b/ui/cocoa LGTM (and sorry for the lateness. If you don't get a reply to a ...
5 years, 10 months ago (2015-02-05 22:41:29 UTC) #7
Nico
ui/base/cocoa lgtm (i usually wait for the main review to be done)
5 years, 10 months ago (2015-02-05 22:46:33 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/887823002/40001
5 years, 10 months ago (2015-02-06 17:24:26 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 10 months ago (2015-02-06 17:27:49 UTC) #11
commit-bot: I haz the power
5 years, 10 months ago (2015-02-06 17:28:24 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f14f8f0ee94f50e6c0387c6574f827d294fca301
Cr-Commit-Position: refs/heads/master@{#315054}

Powered by Google App Engine
This is Rietveld 408576698