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

Issue 184003: Don't show favicons or throbbers for the New Tab page on the Mac.... (Closed)

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

Description

Don't show favicons or throbbers for the New Tab page on the Mac. This change nets another 35ms (15%) improvement in the duration between the renderer requesting the NTP and it having all of the resources for the NTP available and being completely done with layout on my Mac laptop in release mode. For any page which DOMUI indicates no icon should be shown, including the New Tab page, don't show a favicon or throbber. When the icon is removed, the title should expand to the left to fill the void. Compare to the behavior on Windows and Linux. http://groups.google.com/group/chromium-dev/browse_thread/thread/7148074f807dc5f7 BUG=13337 20378 TEST=No throbber or favicon on the New Tab page Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=25167

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -583 lines) Patch
M chrome/app/nibs/TabView.xib View 21 chunks +36 lines, -527 lines 0 comments Download
M chrome/browser/cocoa/tab_controller.h View 1 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/cocoa/tab_controller.mm View 1 2 5 chunks +79 lines, -24 lines 0 comments Download
M chrome/browser/cocoa/tab_controller_unittest.mm View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/cocoa/tab_strip_controller.mm View 2 chunks +34 lines, -25 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Mark Mentovai
11 years, 3 months ago (2009-09-02 03:16:50 UTC) #1
Mark Mentovai
There were some bugs in the first version, so I fixed them. The nib change ...
11 years, 3 months ago (2009-09-02 05:26:02 UTC) #2
pink (ping after 24hrs)
LGTM, however with the nib change, Cole sent me some files to do a fade ...
11 years, 3 months ago (2009-09-02 13:47:07 UTC) #3
Mark Mentovai
11 years, 3 months ago (2009-09-02 15:00:21 UTC) #4
pinkerton@chromium.org wrote:
> LGTM, however with the nib change, Cole sent me some files to do a fade
> via the cell rather than end truncation. That was his plan all along, i
> guess they just missed the last train.

Do you want me to drop the nib from this then?  Is there a bug for the fade?

> http://codereview.chromium.org/184003/diff/4001/5003#newcode173
> Line 173: BOOL oldShowIcon = isIconShowing_ ? YES : NO;
> can't we use the current isHidden state? Do we have to have a member?

We can't use isHidden for a reason that's completely not obvious.
iconView_ gets replaced a lot, including being replaced with nil.
I've added a comment.

> http://codereview.chromium.org/184003/diff/4001/5005#newcode256
> Line 256: EXPECT_TRUE([controller shouldShowCloseButton]);
> add a TODO to write a test that has the icon view hidden?

We alrady test that it hides - do you mean to do something like asking
the controller for the actual live views, since they can be swapped?

Mark

Powered by Google App Engine
This is Rietveld 408576698