|
|
Created:
4 years, 5 months ago by yoshiki Modified:
4 years, 5 months ago Reviewers:
stevenjb CC:
chromium-reviews, Peter Beverloo, mlamouri+watch-notifications_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionFix crash on clicking the web notification tray
This patch adds null-check for focusable view.
BUG=625357
TEST=crash doesn't happen
Committed: https://crrev.com/e65c8d661f1207d8fd4f08622d259dcb90510bca
Cr-Commit-Position: refs/heads/master@{#405112}
Patch Set 1 #
Total comments: 4
Patch Set 2 : For comment #7 #
Total comments: 2
Patch Set 3 : For comment #10 #Patch Set 4 : rebased #Messages
Total messages: 31 (16 generated)
Description was changed from ========== rebased BUG= ========== to ========== Fix crashes on clicking the web notification tray This patch adds null-check for focusable view. BUG=625357 ==========
Description was changed from ========== Fix crashes on clicking the web notification tray This patch adds null-check for focusable view. BUG=625357 ========== to ========== Fix crashe on clicking the web notification tray This patch adds null-check for focusable view. BUG=625357 ==========
Description was changed from ========== Fix crashe on clicking the web notification tray This patch adds null-check for focusable view. BUG=625357 ========== to ========== Fix crash on clicking the web notification tray This patch adds null-check for focusable view. BUG=625357 ==========
Description was changed from ========== Fix crash on clicking the web notification tray This patch adds null-check for focusable view. BUG=625357 ========== to ========== Fix crash on clicking the web notification tray This patch adds null-check for focusable view. BUG=625357 TEST=crash doesn't happen ==========
yoshiki@chromium.org changed reviewers: + stevenjb@chromium.org
Steven, PTAL
https://codereview.chromium.org/2124093003/diff/1/ui/message_center/views/mes... File ui/message_center/views/message_center_bubble.cc (right): https://codereview.chromium.org/2124093003/diff/1/ui/message_center/views/mes... ui/message_center/views/message_center_bubble.cc:113: ->GetNextFocusableView(nullptr, nullptr, false, false); If we are going to DCHECK on bubble_view()->GetFocusManager() we should go ahead and assign it to a local variable, DCHECK that, then use it here. https://codereview.chromium.org/2124093003/diff/1/ui/message_center/views/mes... ui/message_center/views/message_center_bubble.cc:114: if (next_focusable_view) Add a comment explaining why next_focusable_view might be null.
Patchset #2 (id:20001) has been deleted
Steven, PTAL https://codereview.chromium.org/2124093003/diff/1/ui/message_center/views/mes... File ui/message_center/views/message_center_bubble.cc (right): https://codereview.chromium.org/2124093003/diff/1/ui/message_center/views/mes... ui/message_center/views/message_center_bubble.cc:113: ->GetNextFocusableView(nullptr, nullptr, false, false); On 2016/07/07 16:57:12, stevenjb wrote: > If we are going to DCHECK on bubble_view()->GetFocusManager() we should go ahead > and assign it to a local variable, DCHECK that, then use it here. Done. https://codereview.chromium.org/2124093003/diff/1/ui/message_center/views/mes... ui/message_center/views/message_center_bubble.cc:114: if (next_focusable_view) On 2016/07/07 16:57:12, stevenjb wrote: > Add a comment explaining why next_focusable_view might be null. Done.
lgtm w/nit https://codereview.chromium.org/2124093003/diff/40001/ui/message_center/views... File ui/message_center/views/message_center_bubble.cc (right): https://codereview.chromium.org/2124093003/diff/40001/ui/message_center/views... ui/message_center/views/message_center_bubble.cc:110: views::FocusManager* focus_manager = new_bubble_view->GetFocusManager(); Since we are using bubble_view() above we should use that here also to avoid confusion (or use new_bubble_view throughout).
Thanks! https://codereview.chromium.org/2124093003/diff/40001/ui/message_center/views... File ui/message_center/views/message_center_bubble.cc (right): https://codereview.chromium.org/2124093003/diff/40001/ui/message_center/views... ui/message_center/views/message_center_bubble.cc:110: views::FocusManager* focus_manager = new_bubble_view->GetFocusManager(); On 2016/07/11 18:25:10, stevenjb wrote: > Since we are using bubble_view() above we should use that here also to avoid > confusion (or use new_bubble_view throughout). Done.
The CQ bit was checked by yoshiki@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from stevenjb@chromium.org Link to the patchset: https://codereview.chromium.org/2124093003/#ps60001 (title: "For comment #10")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by yoshiki@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by yoshiki@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by yoshiki@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Fix crash on clicking the web notification tray This patch adds null-check for focusable view. BUG=625357 TEST=crash doesn't happen ========== to ========== Fix crash on clicking the web notification tray This patch adds null-check for focusable view. BUG=625357 TEST=crash doesn't happen ==========
Message was sent while issue was closed.
Committed patchset #3 (id:60001)
Message was sent while issue was closed.
CQ bit was unchecked.
Message was sent while issue was closed.
Description was changed from ========== Fix crash on clicking the web notification tray This patch adds null-check for focusable view. BUG=625357 TEST=crash doesn't happen ========== to ========== Fix crash on clicking the web notification tray This patch adds null-check for focusable view. BUG=625357 TEST=crash doesn't happen Committed: https://crrev.com/e65c8d661f1207d8fd4f08622d259dcb90510bca Cr-Commit-Position: refs/heads/master@{#405112} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/e65c8d661f1207d8fd4f08622d259dcb90510bca Cr-Commit-Position: refs/heads/master@{#405112} |