| Index: chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm
|
| diff --git a/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm b/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm
|
| index 41a5a177b113ed9ba130122f438582f5b9c05433..458ef405fdfe5a13dec4355907afcd2cc8af8c99 100644
|
| --- a/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm
|
| +++ b/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm
|
| @@ -2314,5 +2314,9 @@ NSRect GetSheetParentBoundsForParentView(NSView* view) {
|
| // the devtools view is always in the hierarchy even if it is not open or it
|
| // is detached.
|
| NSView* devtools_view = [[[view superview] superview] superview];
|
| - return [devtools_view convertRect:[devtools_view bounds] toView:nil];
|
| + if (devtools_view) {
|
| + return [devtools_view convertRect:[devtools_view bounds] toView:nil];
|
| + } else {
|
| + return [view convertRect:[view bounds] toView:nil];
|
| + }
|
| }
|
|
|