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

Issue 968263005: [Mac] Cleans up the StatusBubbleMac code. (Closed)

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

Description

[Mac] Cleans up the StatusBubbleMac code. This CL reduces unnecessary work in StatusBubbleMac and replaces it with some DCHECKs to verify invariants. (The invariant here is that we set kWindowSizeDeterminedLater once, when state is set to kBubbleHidden, and the size stays that way until the bubble transitions to a different state. If that invariant holds, then we don't need to constantly re-set the size for a hidden bubble.) BUG=None TEST=No visible impact. Status bubble should continue to show, expand, and hide properly. Committed: https://crrev.com/b62daf588fe52c461c8b2c09771dbb32fbfdbab6 Cr-Commit-Position: refs/heads/master@{#318928}

Patch Set 1 #

Patch Set 2 : Crash fixes. #

Total comments: 6

Patch Set 3 : Review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -11 lines) Patch
M chrome/browser/ui/cocoa/status_bubble_mac.mm View 1 2 5 chunks +47 lines, -11 lines 0 comments Download
M chrome/browser/ui/cocoa/status_bubble_mac_unittest.mm View 1 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
rohitrao (ping after 24h)
Here's a CL to reduce (what I think is) unnecessary work and replace it with ...
5 years, 9 months ago (2015-03-03 03:31:28 UTC) #2
rohitrao (ping after 24h)
DCHECKs are firing in a few browsertests. Looking at those now.
5 years, 9 months ago (2015-03-03 12:58:42 UTC) #3
rohitrao (ping after 24h)
Ready for a review now. Browser tests were crashing because I was not properly setting ...
5 years, 9 months ago (2015-03-03 15:54:00 UTC) #4
erikchen
lgtm Compared to the existing code, your CL is a strict improvement. The comments are ...
5 years, 9 months ago (2015-03-03 18:19:50 UTC) #5
rohitrao (ping after 24h)
https://codereview.chromium.org/968263005/diff/20001/chrome/browser/ui/cocoa/status_bubble_mac.mm File chrome/browser/ui/cocoa/status_bubble_mac.mm (right): https://codereview.chromium.org/968263005/diff/20001/chrome/browser/ui/cocoa/status_bubble_mac.mm#newcode482 chrome/browser/ui/cocoa/status_bubble_mac.mm:482: frame.size = ui::kWindowSizeDeterminedLater.size; On 2015/03/03 at 18:19:50, erikchen wrote: ...
5 years, 9 months ago (2015-03-03 18:53:51 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/968263005/40001
5 years, 9 months ago (2015-03-03 18:55:17 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 9 months ago (2015-03-03 19:29:56 UTC) #10
commit-bot: I haz the power
5 years, 9 months ago (2015-03-03 19:30:41 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/b62daf588fe52c461c8b2c09771dbb32fbfdbab6
Cr-Commit-Position: refs/heads/master@{#318928}

Powered by Google App Engine
This is Rietveld 408576698