Fix BookmarkBarControllerTest.LastBookmarkResizeBehavior on 10.11
commitf54108dd9aa8b43982c206442664cb325cd792d7
authorandybons <andybons@chromium.org>
Fri, 7 Aug 2015 01:01:49 +0000 (6 18:01 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 7 Aug 2015 01:02:21 +0000 (7 01:02 +0000)
treee7181fb1549b8e71120ee92b12be4cf0b99305a5
parenta0b6dc9205a195a4fa8c52a71fa1cb2ae8abb591
Fix BookmarkBarControllerTest.LastBookmarkResizeBehavior on 10.11

Due to font width changes from <=10.9 (Lucida Grande), 10.10 (Helvetica), and 10.11 (San Francisco), different reference widths are used to determine whether the bookmark bar should overflow. San Francisco's font width is close enough to Lucida Grande's so change the logic to only use Yosemite widths for Yosemite and not Yosemite and each subsequent release.

BUG=none
TEST=BookmarkBarControllerTest.LastBookmarkResizeBehavior

Review URL: https://codereview.chromium.org/1277823004

Cr-Commit-Position: refs/heads/master@{#342250}
chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm