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

Issue 1018693003: Relaxes window size DCHECKs in StatusBubbleMac. (Closed)

Created:
5 years, 9 months ago by rohitrao (ping after 24h)
Modified:
5 years, 9 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Relaxes window size DCHECKs in StatusBubbleMac. These DCHECKs are firing in telemetry tests on the GPU bots. Removes the DCHECKs and instead adds debug logging to help track down the root cause. Since the window size invariants are not holding in some situations, this CL also contains code to fixup the window size if it is wrong. BUG=464754 TEST=None Committed: https://crrev.com/014fd0a1313597e72bc99a46795cb778a8e40149 Cr-Commit-Position: refs/heads/master@{#321000}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Bug filed. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -8 lines) Patch
M chrome/browser/ui/cocoa/status_bubble_mac.mm View 1 3 chunks +27 lines, -8 lines 1 comment Download

Messages

Total messages: 16 (5 generated)
rohitrao (ping after 24h)
5 years, 9 months ago (2015-03-17 18:10:52 UTC) #2
erikchen
https://codereview.chromium.org/1018693003/diff/1/chrome/browser/ui/cocoa/status_bubble_mac.mm File chrome/browser/ui/cocoa/status_bubble_mac.mm (right): https://codereview.chromium.org/1018693003/diff/1/chrome/browser/ui/cocoa/status_bubble_mac.mm#newcode214 chrome/browser/ui/cocoa/status_bubble_mac.mm:214: if (!CGSizeEqualToSize(frame.size, ui::kWindowSizeDeterminedLater.size)) { You may want to wrap ...
5 years, 9 months ago (2015-03-17 18:14:31 UTC) #3
erikchen
https://codereview.chromium.org/1018693003/diff/1/chrome/browser/ui/cocoa/status_bubble_mac.mm File chrome/browser/ui/cocoa/status_bubble_mac.mm (right): https://codereview.chromium.org/1018693003/diff/1/chrome/browser/ui/cocoa/status_bubble_mac.mm#newcode214 chrome/browser/ui/cocoa/status_bubble_mac.mm:214: if (!CGSizeEqualToSize(frame.size, ui::kWindowSizeDeterminedLater.size)) { On 2015/03/17 18:14:31, erikchen wrote: ...
5 years, 9 months ago (2015-03-17 18:15:38 UTC) #4
rohitrao (ping after 24h)
kbr@ can chime in, but I think the bot in question is running a release ...
5 years, 9 months ago (2015-03-17 18:17:21 UTC) #5
erikchen
On 2015/03/17 18:17:21, rohitrao wrote: > kbr@ can chime in, but I think the bot ...
5 years, 9 months ago (2015-03-17 18:20:02 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1018693003/20001
5 years, 9 months ago (2015-03-17 19:10:36 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) Timed out ...
5 years, 9 months ago (2015-03-17 22:26:06 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1018693003/20001
5 years, 9 months ago (2015-03-17 22:29:08 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 9 months ago (2015-03-17 22:34:46 UTC) #14
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/014fd0a1313597e72bc99a46795cb778a8e40149 Cr-Commit-Position: refs/heads/master@{#321000}
5 years, 9 months ago (2015-03-17 22:35:24 UTC) #15
Ken Russell (switch to Gerrit)
5 years, 9 months ago (2015-03-17 22:36:23 UTC) #16
Message was sent while issue was closed.
lgtm overall.

https://codereview.chromium.org/1018693003/diff/20001/chrome/browser/ui/cocoa...
File chrome/browser/ui/cocoa/status_bubble_mac.mm (right):

https://codereview.chromium.org/1018693003/diff/20001/chrome/browser/ui/cocoa...
chrome/browser/ui/cocoa/status_bubble_mac.mm:219: frame.size =
ui::kWindowSizeDeterminedLater.size;
Note: I'm not sure how well base::debug::StackTrace works in non-debug builds. I
might have suggested surrounding this logging code with:

#if DCHECK_IS_ON()

(The bots build Release, with dcheck_always_on=1.)

Powered by Google App Engine
This is Rietveld 408576698