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

Issue 2267803003: ash: Remove unnecessary WmShelf::SchedulePaint() method (Closed)

Created:
4 years, 4 months ago by James Cook
Modified:
4 years, 4 months ago
Reviewers:
msw
CC:
chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ash: Remove unnecessary WmShelf::SchedulePaint() method This method existed because the overflow bubble used it to cause a repaint of the overflow button in the parent shelf view. Instead of repainting all the buttons, just repaint the anchor directly. (I am uncertain this code path ever gets called in production. It would only run if some code directly destroyed the bubble widget instead of calling into the shelf code to do so. This does not seem to happen at shutdown or when disconnecting a display, even with the bubble visible. However, failure to cleanup the cached pointers in OverflowBubble on widget destruction would cause crashes, so I'm keeping the OnWidgetDestroying() method.) BUG=615502 TEST=ash_browsertests, manual tests of opening and closing the overflow bubble on multiple displays Committed: https://crrev.com/44f141a103fe98f7c1be86ab8dfe80ce49204ca5 Cr-Commit-Position: refs/heads/master@{#413556}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -22 lines) Patch
M ash/common/shelf/overflow_bubble.h View 1 chunk +3 lines, -1 line 0 comments Download
M ash/common/shelf/overflow_bubble.cc View 2 chunks +8 lines, -4 lines 2 comments Download
M ash/common/shelf/wm_shelf.h View 1 chunk +0 lines, -5 lines 0 comments Download
M ash/common/shelf/wm_shelf.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M ash/shelf/shelf.h View 1 chunk +0 lines, -2 lines 0 comments Download
M ash/shelf/shelf.cc View 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (7 generated)
James Cook
msw, please take a look. I dug into the history of OverflowBubble::OnWidgetDestroying() and wasn't able ...
4 years, 4 months ago (2016-08-22 21:35:58 UTC) #4
msw
lgtm https://codereview.chromium.org/2267803003/diff/1/ash/common/shelf/overflow_bubble.cc File ash/common/shelf/overflow_bubble.cc (right): https://codereview.chromium.org/2267803003/diff/1/ash/common/shelf/overflow_bubble.cc#newcode31 ash/common/shelf/overflow_bubble.cc:31: void OverflowBubble::Show(views::View* anchor, ShelfView* shelf_view) { aside: it'd ...
4 years, 4 months ago (2016-08-22 21:48:25 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2267803003/1
4 years, 4 months ago (2016-08-22 21:57:24 UTC) #8
commit-bot: I haz the power
Failed to apply the patch. On branch working_branch Your branch is up-to-date with 'origin/refs/pending/heads/master'. nothing ...
4 years, 4 months ago (2016-08-22 22:36:38 UTC) #10
commit-bot: I haz the power
4 years, 4 months ago (2016-08-22 22:38:08 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/44f141a103fe98f7c1be86ab8dfe80ce49204ca5
Cr-Commit-Position: refs/heads/master@{#413556}

Powered by Google App Engine
This is Rietveld 408576698