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

Issue 1653113002: Fix favicon disappearing on pinned tabs (Closed)

Created:
4 years, 10 months ago by enne (OOO)
Modified:
4 years, 10 months ago
Reviewers:
Peter Kasting, miu, sky
CC:
chromium-reviews, miu+watch_chromium.org, sky, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix favicon disappearing on pinned tabs Because of https://codereview.chromium.org/1566313002, layout no longer happens during paint, so any operations that require a layout need to explicitly request one, rather than just scheduling a paint. This updates the MediaIndicatorButton to update the parent tab whenever the media state changes, such as during an animation. BUG=581202 Committed: https://crrev.com/db5cc6687e396fc77282e2c32c39731e20d4fb94 Cr-Commit-Position: refs/heads/master@{#373384}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Change bool => TabMediaState OOPS #

Patch Set 3 : Now with a test #

Patch Set 4 : Stop animation directly #

Total comments: 2

Patch Set 5 : Fix copyright; fix variable names #

Total comments: 8

Patch Set 6 : pkasting comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -3 lines) Patch
M chrome/browser/ui/views/tabs/fake_base_tab_strip_controller.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/fake_base_tab_strip_controller.cc View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/media_indicator_button.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/media_indicator_button.cc View 1 3 chunks +7 lines, -3 lines 0 comments Download
A chrome/browser/ui/views/tabs/media_indicator_button_unittest.cc View 1 2 3 4 5 1 chunk +113 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 32 (11 generated)
enne (OOO)
Oops, a layout was all that was needed after all. I added a more specific ...
4 years, 10 months ago (2016-02-01 19:58:51 UTC) #2
miu
lgtm % one thing: https://codereview.chromium.org/1653113002/diff/1/chrome/browser/ui/views/tabs/media_indicator_button.cc File chrome/browser/ui/views/tabs/media_indicator_button.cc (right): https://codereview.chromium.org/1653113002/diff/1/chrome/browser/ui/views/tabs/media_indicator_button.cc#newcode80 chrome/browser/ui/views/tabs/media_indicator_button.cc:80: bool previous_media_showing_state = showing_media_state_; The ...
4 years, 10 months ago (2016-02-01 20:28:33 UTC) #3
enne (OOO)
https://codereview.chromium.org/1653113002/diff/1/chrome/browser/ui/views/tabs/media_indicator_button.cc File chrome/browser/ui/views/tabs/media_indicator_button.cc (right): https://codereview.chromium.org/1653113002/diff/1/chrome/browser/ui/views/tabs/media_indicator_button.cc#newcode80 chrome/browser/ui/views/tabs/media_indicator_button.cc:80: bool previous_media_showing_state = showing_media_state_; On 2016/02/01 at 20:28:32, miu ...
4 years, 10 months ago (2016-02-01 20:36:33 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1653113002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1653113002/20001
4 years, 10 months ago (2016-02-01 20:39:24 UTC) #7
sky
LGTM - it would be good to add test coverage of this.
4 years, 10 months ago (2016-02-01 20:51:15 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/87125) chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 10 months ago (2016-02-01 20:52:01 UTC) #11
Peter Kasting
LGTM. I'd probably have just called Layout() directly, but if sky prefers this route that's ...
4 years, 10 months ago (2016-02-03 00:06:07 UTC) #12
enne (OOO)
On 2016/02/01 at 20:51:15, sky wrote: > LGTM - it would be good to add ...
4 years, 10 months ago (2016-02-03 01:02:04 UTC) #13
Peter Kasting
On 2016/02/03 01:02:04, enne wrote: > On 2016/02/01 at 20:51:15, sky wrote: > > LGTM ...
4 years, 10 months ago (2016-02-03 01:18:42 UTC) #14
enne (OOO)
On 2016/02/03 at 01:18:42, pkasting wrote: > Do we have to test at such a ...
4 years, 10 months ago (2016-02-03 01:30:02 UTC) #15
Peter Kasting
I would probably not add a test at all here then. Perhaps Scott has better ...
4 years, 10 months ago (2016-02-03 01:44:35 UTC) #16
sky
Can you add a way for the test to alter the animation? Or a test ...
4 years, 10 months ago (2016-02-03 16:41:13 UTC) #17
enne (OOO)
How about this in terms of stopping the animation directly?
4 years, 10 months ago (2016-02-03 19:11:37 UTC) #18
sky
LGTM https://codereview.chromium.org/1653113002/diff/60001/chrome/browser/ui/views/tabs/media_indicator_button_unittest.cc File chrome/browser/ui/views/tabs/media_indicator_button_unittest.cc (right): https://codereview.chromium.org/1653113002/diff/60001/chrome/browser/ui/views/tabs/media_indicator_button_unittest.cc#newcode1 chrome/browser/ui/views/tabs/media_indicator_button_unittest.cc:1: // Copyright (c) 2016 The Chromium Authors. All ...
4 years, 10 months ago (2016-02-03 22:02:13 UTC) #19
enne (OOO)
https://codereview.chromium.org/1653113002/diff/60001/chrome/browser/ui/views/tabs/media_indicator_button_unittest.cc File chrome/browser/ui/views/tabs/media_indicator_button_unittest.cc (right): https://codereview.chromium.org/1653113002/diff/60001/chrome/browser/ui/views/tabs/media_indicator_button_unittest.cc#newcode1 chrome/browser/ui/views/tabs/media_indicator_button_unittest.cc:1: // Copyright (c) 2016 The Chromium Authors. All rights ...
4 years, 10 months ago (2016-02-03 22:13:18 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1653113002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1653113002/80001
4 years, 10 months ago (2016-02-03 22:14:01 UTC) #23
Peter Kasting
LGTM https://codereview.chromium.org/1653113002/diff/80001/chrome/browser/ui/views/tabs/media_indicator_button_unittest.cc File chrome/browser/ui/views/tabs/media_indicator_button_unittest.cc (right): https://codereview.chromium.org/1653113002/diff/80001/chrome/browser/ui/views/tabs/media_indicator_button_unittest.cc#newcode28 chrome/browser/ui/views/tabs/media_indicator_button_unittest.cc:28: // Do this to force TabStrip to create ...
4 years, 10 months ago (2016-02-03 22:36:39 UTC) #24
enne (OOO)
https://codereview.chromium.org/1653113002/diff/80001/chrome/browser/ui/views/tabs/media_indicator_button_unittest.cc File chrome/browser/ui/views/tabs/media_indicator_button_unittest.cc (right): https://codereview.chromium.org/1653113002/diff/80001/chrome/browser/ui/views/tabs/media_indicator_button_unittest.cc#newcode28 chrome/browser/ui/views/tabs/media_indicator_button_unittest.cc:28: // Do this to force TabStrip to create the ...
4 years, 10 months ago (2016-02-03 22:46:46 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1653113002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1653113002/100001
4 years, 10 months ago (2016-02-03 22:50:03 UTC) #29
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 10 months ago (2016-02-03 23:38:07 UTC) #30
commit-bot: I haz the power
4 years, 10 months ago (2016-02-03 23:39:04 UTC) #32
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/db5cc6687e396fc77282e2c32c39731e20d4fb94
Cr-Commit-Position: refs/heads/master@{#373384}

Powered by Google App Engine
This is Rietveld 408576698