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

Issue 2706403006: Check that tab switcher is active/inactive before visibility check. (Closed)

Created:
3 years, 10 months ago by kkhorimoto
Modified:
3 years, 9 months ago
CC:
chromium-reviews, marq+watch_chromium.org, pkl (ping after 24h if needed), noyau+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Check that tab switcher is active/inactive before visibility check. As shown in the referenced bug, testCloseAllTabs was failing because the stack view visibility check was checking for a nil stack view. This is likely occurring because the visibility check was occurring before the touch event that should show the tab switcher is handled. Adding this condition will wait for the touch event to be handled before checking for visibility. BUG=693517 Review-Url: https://codereview.chromium.org/2706403006 Cr-Commit-Position: refs/heads/master@{#455293} Committed: https://chromium.googlesource.com/chromium/src/+/389418d676c37f1c98ac289da1b57b68888bd701

Patch Set 1 #

Total comments: 8

Patch Set 2 : separate visibility vs. active checks #

Total comments: 6

Patch Set 3 : moved comment #

Patch Set 4 : GREYAssert #

Patch Set 5 : fix gn #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -8 lines) Patch
M ios/chrome/browser/ui/stack_view/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/ui/stack_view/stack_view_egtest.mm View 1 2 3 7 chunks +30 lines, -8 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
kkhorimoto
3 years, 10 months ago (2017-02-23 04:07:40 UTC) #2
kkhorimoto
3 years, 10 months ago (2017-02-23 19:05:33 UTC) #4
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2706403006/diff/1/ios/chrome/browser/ui/stack_view/stack_view_egtest.mm File ios/chrome/browser/ui/stack_view/stack_view_egtest.mm (right): https://codereview.chromium.org/2706403006/diff/1/ios/chrome/browser/ui/stack_view/stack_view_egtest.mm#newcode58 ios/chrome/browser/ui/stack_view/stack_view_egtest.mm:58: visible ? @"active" : @"inactive"]; I'm confused about mixing ...
3 years, 10 months ago (2017-02-23 19:11:26 UTC) #5
kkhorimoto
https://codereview.chromium.org/2706403006/diff/1/ios/chrome/browser/ui/stack_view/stack_view_egtest.mm File ios/chrome/browser/ui/stack_view/stack_view_egtest.mm (right): https://codereview.chromium.org/2706403006/diff/1/ios/chrome/browser/ui/stack_view/stack_view_egtest.mm#newcode58 ios/chrome/browser/ui/stack_view/stack_view_egtest.mm:58: visible ? @"active" : @"inactive"]; On 2017/02/23 19:11:25, Eugene ...
3 years, 9 months ago (2017-03-07 06:46:51 UTC) #6
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2706403006/diff/20001/ios/chrome/browser/ui/stack_view/stack_view_egtest.mm File ios/chrome/browser/ui/stack_view/stack_view_egtest.mm (right): https://codereview.chromium.org/2706403006/diff/20001/ios/chrome/browser/ui/stack_view/stack_view_egtest.mm#newcode55 ios/chrome/browser/ui/stack_view/stack_view_egtest.mm:55: void WaitForStackViewActive(bool active) { Do you want to return ...
3 years, 9 months ago (2017-03-07 16:08:15 UTC) #7
kkhorimoto
https://codereview.chromium.org/2706403006/diff/20001/ios/chrome/browser/ui/stack_view/stack_view_egtest.mm File ios/chrome/browser/ui/stack_view/stack_view_egtest.mm (right): https://codereview.chromium.org/2706403006/diff/20001/ios/chrome/browser/ui/stack_view/stack_view_egtest.mm#newcode55 ios/chrome/browser/ui/stack_view/stack_view_egtest.mm:55: void WaitForStackViewActive(bool active) { On 2017/03/07 16:08:15, Eugene But ...
3 years, 9 months ago (2017-03-07 19:05:03 UTC) #8
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2706403006/diff/20001/ios/chrome/browser/ui/stack_view/stack_view_egtest.mm File ios/chrome/browser/ui/stack_view/stack_view_egtest.mm (right): https://codereview.chromium.org/2706403006/diff/20001/ios/chrome/browser/ui/stack_view/stack_view_egtest.mm#newcode55 ios/chrome/browser/ui/stack_view/stack_view_egtest.mm:55: void WaitForStackViewActive(bool active) { On 2017/03/07 19:05:03, kkhorimoto_ wrote: ...
3 years, 9 months ago (2017-03-07 19:21:12 UTC) #9
kkhorimoto
https://codereview.chromium.org/2706403006/diff/20001/ios/chrome/browser/ui/stack_view/stack_view_egtest.mm File ios/chrome/browser/ui/stack_view/stack_view_egtest.mm (right): https://codereview.chromium.org/2706403006/diff/20001/ios/chrome/browser/ui/stack_view/stack_view_egtest.mm#newcode55 ios/chrome/browser/ui/stack_view/stack_view_egtest.mm:55: void WaitForStackViewActive(bool active) { On 2017/03/07 19:21:12, Eugene But ...
3 years, 9 months ago (2017-03-07 21:19:51 UTC) #10
Eugene But (OOO till 7-30)
Thank you! Sorry for back and forth. lgtm
3 years, 9 months ago (2017-03-07 21:20:57 UTC) #11
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/2706403006/60001
3 years, 9 months ago (2017-03-07 21:25:13 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-clang/builds/51607) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 9 months ago (2017-03-07 21:34:34 UTC) #15
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/2706403006/80001
3 years, 9 months ago (2017-03-07 22:07:57 UTC) #18
commit-bot: I haz the power
3 years, 9 months ago (2017-03-07 23:48:19 UTC) #21
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/389418d676c37f1c98ac289da1b5...

Powered by Google App Engine
This is Rietveld 408576698