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

Unified Diff: ui/views/bubble/tray_bubble_view.cc

Issue 17045003: Test delegate_ in TrayBubbleView::GetAccessibleState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/bubble/tray_bubble_view.cc
diff --git a/ui/views/bubble/tray_bubble_view.cc b/ui/views/bubble/tray_bubble_view.cc
index 0fc2c180b8d0abab6713720261a6eb67693fb77e..9c4defa6d706c62fc9d5f40dd7d36b9b564fd347 100644
--- a/ui/views/bubble/tray_bubble_view.cc
+++ b/ui/views/bubble/tray_bubble_view.cc
@@ -396,7 +396,7 @@ void TrayBubbleView::OnMouseExited(const ui::MouseEvent& event) {
}
void TrayBubbleView::GetAccessibleState(ui::AccessibleViewState* state) {
- if (params_.can_activate) {
+ if (delegate_ && params_.can_activate) {
state->role = ui::AccessibilityTypes::ROLE_WINDOW;
state->name = delegate_->GetAccessibleNameForBubble();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698