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

Issue 185793005: Replacing raw pointer to LayerAnimator with scoped_refptr in ScopedLayerAnimationSettings. (Closed)

Created:
6 years, 9 months ago by mfomitchev
Modified:
6 years, 9 months ago
Reviewers:
Ian Vollick, sadrul, sky
CC:
chromium-reviews, jbauman+watch_chromium.org, jam, sievers+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Replacing raw pointer to LayerAnimator with scoped_refptr in ScopedLayerAnimationSettings. The raw pointer can cause issues: if the ScopedLayerAnimationSettings object survives the respective LayerAnimator object, a seg fault occurs when ScopedLayerAnimationSettings is deleted. This is particularly problematic when the animation in question has a 0 duration (which can be the case for unit tests). When animation's duration is 0, the Animator gets deleted right away, by the same setter that starts the animation. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255482

Patch Set 1 #

Patch Set 2 : Re-uploading same changes. #

Patch Set 3 : Adding a unit test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -17 lines) Patch
M content/browser/web_contents/aura/overscroll_navigation_overlay.cc View 1 chunk +6 lines, -11 lines 0 comments Download
M ui/compositor/layer_animator_unittest.cc View 1 2 3 chunks +57 lines, -2 lines 0 comments Download
M ui/compositor/scoped_layer_animation_settings.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/compositor/scoped_layer_animation_settings.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
mfomitchev
Hi Ian, Can you please take a look? Quick change as we discussed via email.
6 years, 9 months ago (2014-03-03 22:11:00 UTC) #1
Ian Vollick
On 2014/03/03 22:11:00, mfomitchev wrote: > Hi Ian, > Can you please take a look? ...
6 years, 9 months ago (2014-03-03 23:02:08 UTC) #2
mfomitchev
I've re-uploaded the changes. Tests in content/browser/web_contents/aura/overscroll_navigation_overlay_unittest.cc will fail if someone replaces the ref counted ...
6 years, 9 months ago (2014-03-03 23:19:52 UTC) #3
Ian Vollick
On 2014/03/03 23:19:52, mfomitchev wrote: > I've re-uploaded the changes. > Tests in > content/browser/web_contents/aura/overscroll_navigation_overlay_unittest.cc ...
6 years, 9 months ago (2014-03-04 02:53:02 UTC) #4
mfomitchev
I've added a unit test. Can you please take another look? Thanks!
6 years, 9 months ago (2014-03-05 23:30:33 UTC) #5
Ian Vollick
On 2014/03/05 23:30:33, mfomitchev wrote: > I've added a unit test. Can you please take ...
6 years, 9 months ago (2014-03-06 03:35:49 UTC) #6
mfomitchev
Adding sky@, sadrul@ for the Overlay piece - can you please review? Thanks!
6 years, 9 months ago (2014-03-06 15:26:55 UTC) #7
sky
LGTM
6 years, 9 months ago (2014-03-06 16:51:45 UTC) #8
mfomitchev
The CQ bit was checked by mfomitchev@chromium.org
6 years, 9 months ago (2014-03-06 16:52:55 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mfomitchev@chromium.org/185793005/40001
6 years, 9 months ago (2014-03-06 16:53:15 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 17:56:49 UTC) #11
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=276411
6 years, 9 months ago (2014-03-06 17:56:49 UTC) #12
mfomitchev
The CQ bit was checked by mfomitchev@chromium.org
6 years, 9 months ago (2014-03-06 17:59:35 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mfomitchev@chromium.org/185793005/40001
6 years, 9 months ago (2014-03-06 18:00:01 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mfomitchev@chromium.org/185793005/40001
6 years, 9 months ago (2014-03-06 20:51:03 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mfomitchev@chromium.org/185793005/40001
6 years, 9 months ago (2014-03-06 21:39:16 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mfomitchev@chromium.org/185793005/40001
6 years, 9 months ago (2014-03-06 22:14:58 UTC) #17
commit-bot: I haz the power
6 years, 9 months ago (2014-03-07 00:46:14 UTC) #18
Message was sent while issue was closed.
Change committed as 255482

Powered by Google App Engine
This is Rietveld 408576698