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

Issue 216031: Add EV certificate text to the Mac location bar... (Closed)

Created:
11 years, 3 months ago by hawk
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, John Grabowski, pam+watch_chromium.org, Ben Goodger (Google), Paweł Hajdan Jr.
Visibility:
Public.

Description

Add EV certificate text to the Mac location bar BUG=10910 TEST=EV sites (e.g., http://www.paypal.com and most bank sites) get a green text description next to the lock icon in the location bar, non-EV (and non-SSL) sites do not Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=28627

Patch Set 1 #

Total comments: 3

Patch Set 2 : '' #

Total comments: 8

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 5

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -16 lines) Patch
M chrome/browser/cocoa/autocomplete_text_field_cell.h View 1 2 3 4 5 3 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/cocoa/autocomplete_text_field_cell.mm View 1 2 3 4 5 6 chunks +54 lines, -5 lines 0 comments Download
M chrome/browser/cocoa/autocomplete_text_field_cell_unittest.mm View 1 2 3 4 5 5 chunks +41 lines, -7 lines 0 comments Download
M chrome/browser/cocoa/location_bar_view_mac.mm View 1 2 3 4 5 2 chunks +27 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Scott Hess - ex-Googler
Is this implementing something new? My Windows Chrome doesn't show a label for the paypal ...
11 years, 3 months ago (2009-09-22 18:26:59 UTC) #1
hawk
On 2009/09/22 18:26:59, shess wrote: > Is this implementing something new? My Windows Chrome doesn't ...
11 years, 3 months ago (2009-09-23 19:51:06 UTC) #2
wtc
hawk: On Windows XP, the "check for server certificate revocation" box is not checked by ...
11 years, 3 months ago (2009-09-23 20:20:30 UTC) #3
Scott Hess - ex-Googler
OK, I can see it with that setting. Probably worth noting that in the TEST= ...
11 years, 3 months ago (2009-09-23 20:30:29 UTC) #4
hawk
http://codereview.chromium.org/216031/diff/1/5 File chrome/browser/cocoa/autocomplete_text_field_cell.h (right): http://codereview.chromium.org/216031/diff/1/5#newcode68 Line 68: - (void)setHintIconLabel:(NSAttributedString*)label; On 2009/09/22 18:27:00, shess wrote: > ...
11 years, 3 months ago (2009-09-24 18:22:23 UTC) #5
Scott Hess - ex-Googler
http://codereview.chromium.org/216031/diff/1/5 File chrome/browser/cocoa/autocomplete_text_field_cell.h (right): http://codereview.chromium.org/216031/diff/1/5#newcode68 Line 68: - (void)setHintIconLabel:(NSAttributedString*)label; On 2009/09/24 18:22:23, hawk wrote: > ...
11 years, 3 months ago (2009-09-24 20:32:54 UTC) #6
hawk
On 2009/09/24 20:32:54, shess wrote: > http://codereview.chromium.org/216031/diff/1/5 > File chrome/browser/cocoa/autocomplete_text_field_cell.h (right): > > http://codereview.chromium.org/216031/diff/1/5#newcode68 > ...
11 years, 3 months ago (2009-09-25 18:36:47 UTC) #7
Scott Hess - ex-Googler
Sorry for the delay, I appear to have let this fall through the cracks. http://codereview.chromium.org/216031/diff/4003/4004 ...
11 years, 2 months ago (2009-09-30 00:42:11 UTC) #8
hawk
http://codereview.chromium.org/216031/diff/4003/4004 File chrome/browser/cocoa/autocomplete_text_field_cell.mm (right): http://codereview.chromium.org/216031/diff/4003/4004#newcode183 Line 183: } On 2009/09/30 00:42:11, shess wrote: > Push ...
11 years, 2 months ago (2009-10-03 00:59:21 UTC) #9
Scott Hess - ex-Googler
http://codereview.chromium.org/216031/diff/11002/17001 File chrome/browser/cocoa/autocomplete_text_field_cell.mm (right): http://codereview.chromium.org/216031/diff/11002/17001#newcode190 Line 190: (as && ![hintIconLabel_.get() isEqualToAttributedString:as])) { I think ![hintIconLabel_.get() ...
11 years, 2 months ago (2009-10-06 20:25:05 UTC) #10
hawk
http://codereview.chromium.org/216031/diff/11002/17001 File chrome/browser/cocoa/autocomplete_text_field_cell.mm (right): http://codereview.chromium.org/216031/diff/11002/17001#newcode190 Line 190: (as && ![hintIconLabel_.get() isEqualToAttributedString:as])) { On 2009/10/06 20:25:05, ...
11 years, 2 months ago (2009-10-07 21:08:27 UTC) #11
Scott Hess - ex-Googler
11 years, 2 months ago (2009-10-08 18:04:02 UTC) #12
LGTM, change suggested is your call.

http://codereview.chromium.org/216031/diff/11002/17001
File chrome/browser/cocoa/autocomplete_text_field_cell.mm (right):

http://codereview.chromium.org/216031/diff/11002/17001#newcode190
Line 190: (as && ![hintIconLabel_.get() isEqualToAttributedString:as])) {
On 2009/10/07 21:08:28, hawk wrote:
> On 2009/10/06 20:25:05, shess wrote:
> > I think ![hintIconLabel_.get() isEqualToAttributedString:as] is sufficient
for
> > all of the as/hintIconLabel_ tests.  It only mis-fires when both are nil, so
> if
> > you want to be pedantic you could additionally test that case.
> 
> I added the extra tests because of that case, but mostly because passing nil
as
> an parameter to isEqualToAttributedString: is undefined (it does happen to
work,
> though, at least in 10.5.8) so I don't want to call it if !as, and that
required
> the extra tests.

Ick, you're right.  The (as && !hintIconLabel_.get()) check is still redundent. 
If you'd rather keep it, then put it on a separate line so that the (true &&
!false) and (!false && true) cases are more obvious.

[Sorry to harp on this test, it just looks so complicated, it vexes me :-).]

Powered by Google App Engine
This is Rietveld 408576698