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

Issue 390014: Total guess fix for the bug.... (Closed)

Created:
11 years, 1 month ago by TVL
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, John Grabowski, pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Total guess fixes for the bug. Add DCHECKs for main thread in all the places we use animation contexts. Added a stack based class that takes an animate flag to enable/disable animation operations (grouping, durations) to clean up the code that does optional animation. This might help the crashes in the bug because before we created animation context groups when we didn't need them and those empty groups could be tripping up something in the system frameworks (I some something similar in nib loading on 10.6). BUG=26979 TEST=like we have a repeat fail case... Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=31781

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 3

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 7

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 3

Patch Set 9 : '' #

Patch Set 10 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -20 lines) Patch
M chrome/browser/autocomplete/autocomplete_popup_view_mac.mm View 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/cocoa/download_shelf_controller.mm View 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/cocoa/tab_strip_controller.mm View 1 2 3 4 5 6 7 8 9 8 chunks +54 lines, -19 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Mark Mentovai
http://codereview.chromium.org/390014/diff/1/2 File chrome/browser/cocoa/tab_strip_controller.mm (right): http://codereview.chromium.org/390014/diff/1/2#newcode707 Line 707: [[NSAnimationContext currentContext] Do we need to worry about ...
11 years, 1 month ago (2009-11-11 19:22:03 UTC) #1
Mark Mentovai
http://codereview.chromium.org/390014/diff/1/2 File chrome/browser/cocoa/tab_strip_controller.mm (right): http://codereview.chromium.org/390014/diff/1/2#newcode707 Line 707: [[NSAnimationContext currentContext] Do we need to worry about ...
11 years, 1 month ago (2009-11-11 19:22:45 UTC) #2
TVL
http://codereview.chromium.org/390014/diff/1/2 File chrome/browser/cocoa/tab_strip_controller.mm (right): http://codereview.chromium.org/390014/diff/1/2#newcode707 Line 707: [[NSAnimationContext currentContext] On 2009/11/11 19:22:03, Mark Mentovai wrote: ...
11 years, 1 month ago (2009-11-11 19:28:19 UTC) #3
TVL
Reviewers: Mark Mentovai, http://codereview.chromium.org/390014/diff/1/2 File chrome/browser/cocoa/tab_strip_controller.mm (right): http://codereview.chromium.org/390014/diff/1/2#newcode707 Line 707: [[NSAnimationContext currentContext] On 2009/11/11 19:22:03, ...
11 years, 1 month ago (2009-11-11 19:28:38 UTC) #4
Mark Mentovai
lgtm http://codereview.chromium.org/390014/diff/3/6 File chrome/browser/cocoa/tab_strip_controller.mm (right): http://codereview.chromium.org/390014/diff/3/6#newcode557 Line 557: [self regenerateSubviewList]; Fix indentation while you're in ...
11 years, 1 month ago (2009-11-11 20:38:45 UTC) #5
pink (ping after 24hrs)
I don't really like this as it obscures the begin/ends inside indenting and makes it ...
11 years, 1 month ago (2009-11-11 21:00:43 UTC) #6
TVL
On 2009/11/11 21:00:43, pink wrote: > I don't really like this as it obscures the ...
11 years, 1 month ago (2009-11-11 21:06:08 UTC) #7
pink (ping after 24hrs)
Yes, that's a good idea. I'd prefer a stack-based class that takes an animate param.
11 years, 1 month ago (2009-11-11 21:16:00 UTC) #8
TVL
updated. could add a helper for the min animiation duration thing if we want.
11 years, 1 month ago (2009-11-11 21:45:42 UTC) #9
Mark Mentovai
lg http://codereview.chromium.org/390014/diff/3009/5010 File chrome/browser/cocoa/tab_strip_controller.mm (right): http://codereview.chromium.org/390014/diff/3009/5010#newcode60 Line 60: ScopedNSAnimationContextGroup(bool animate) “You want me to be…explicit?” ...
11 years, 1 month ago (2009-11-11 21:55:17 UTC) #10
pink (ping after 24hrs)
lgtm http://codereview.chromium.org/390014/diff/3009/5010 File chrome/browser/cocoa/tab_strip_controller.mm (right): http://codereview.chromium.org/390014/diff/3009/5010#newcode637 Line 637: [[NSAnimationContext currentContext] setDuration:kMinimumTimeInterval]; shouldn't this use localAnimationGroup? ...
11 years, 1 month ago (2009-11-11 21:59:59 UTC) #11
TVL
http://codereview.chromium.org/390014/diff/3009/5010 File chrome/browser/cocoa/tab_strip_controller.mm (right): http://codereview.chromium.org/390014/diff/3009/5010#newcode637 Line 637: [[NSAnimationContext currentContext] setDuration:kMinimumTimeInterval]; On 2009/11/11 22:00:00, pink wrote: ...
11 years, 1 month ago (2009-11-11 22:03:44 UTC) #12
pink (ping after 24hrs)
I think we do want to respect the animation flag here and do it on ...
11 years, 1 month ago (2009-11-11 22:15:52 UTC) #13
pink (ping after 24hrs)
LGTM http://codereview.chromium.org/390014/diff/4009/4012 File chrome/browser/cocoa/tab_strip_controller.mm (right): http://codereview.chromium.org/390014/diff/4009/4012#newcode82 Line 82: // passed to +[NSAnimationContext setDuration:] to stop ...
11 years, 1 month ago (2009-11-11 22:23:49 UTC) #14
Mark Mentovai
11 years, 1 month ago (2009-11-11 22:26:10 UTC) #15
http://codereview.chromium.org/390014/diff/4009/4012
File chrome/browser/cocoa/tab_strip_controller.mm (right):

http://codereview.chromium.org/390014/diff/4009/4012#newcode83
Line 83: // animation as quickly as possible.
Should this just do

void SetCurrentContextShortestDuration() {
  const NSTimeInterval kMinimumTimeInterval =
      std::numeric_limits<NSTimeInterval>::min();
  SetCurrentContextDuration(kMinimumTimeInterval);
}

for simplicity and reuse and stuff?

http://codereview.chromium.org/390014/diff/4009/4012#newcode89
Line 89: private:
BLANK BEFORE.

Powered by Google App Engine
This is Rietveld 408576698