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

Issue 1951143002: [Mac][Material Design] Get Omnibox table width from dropdown window. (Closed)

Created:
4 years, 7 months ago by shrike
Modified:
4 years, 7 months ago
Reviewers:
Avi (use Gerrit)
CC:
chromium-reviews, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Mac][Material Design] Get Omnibox table width from dropdown window. Under Material Design the suggestion table is the width of the Omnibox window. OmniboxPopupViewMac::PositionPopup() took this width from -[BrowserWindowController omniboxPopupAnchorRect], which returns the empty rect in the unit test test harness. This resulted in a zero-width table that tripped a DCHECK when called from OmniboxPopupViewMacTest.UpdatePopupAppearance. With this change the Omnibox grabs the window width direclty from the Omnibox textfield's window, which is available under normal usage and in the test harness. R=avi@chromium.org BUG=609312 Committed: https://crrev.com/d60d2a2181c8d3a635eb17d784dfd3402b8c8c92 Cr-Commit-Position: refs/heads/master@{#391860}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (5 generated)
shrike
PTAL
4 years, 7 months ago (2016-05-04 23:02:20 UTC) #3
Avi (use Gerrit)
lgtm
4 years, 7 months ago (2016-05-05 02:02:28 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1951143002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1951143002/1
4 years, 7 months ago (2016-05-05 17:34:18 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 7 months ago (2016-05-05 18:57:59 UTC) #8
commit-bot: I haz the power
4 years, 7 months ago (2016-05-05 18:59:21 UTC) #10
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/d60d2a2181c8d3a635eb17d784dfd3402b8c8c92
Cr-Commit-Position: refs/heads/master@{#391860}

Powered by Google App Engine
This is Rietveld 408576698