| Index: chrome/browser/ui/views/accessible_pane_view.cc
|
| ===================================================================
|
| --- chrome/browser/ui/views/accessible_pane_view.cc (revision 74117)
|
| +++ chrome/browser/ui/views/accessible_pane_view.cc (working copy)
|
| @@ -48,7 +48,7 @@
|
| // Use the provided initial focus if it's visible and enabled, otherwise
|
| // use the first focusable child.
|
| if (!initial_focus ||
|
| - !IsParentOf(initial_focus) ||
|
| + !Contains(initial_focus) ||
|
| !initial_focus->IsVisible() ||
|
| !initial_focus->IsEnabled()) {
|
| initial_focus = GetFirstFocusableChild();
|
| @@ -216,7 +216,7 @@
|
| &AccessiblePaneView::LocationBarSelectAll));
|
| }
|
|
|
| - if (!IsParentOf(focused_now) ||
|
| + if (!Contains(focused_now) ||
|
| reason == views::FocusManager::kReasonDirectFocusChange) {
|
| // We should remove pane focus (i.e. make most of the controls
|
| // not focusable again) either because the focus is leaving the pane,
|
|
|