| Index: chrome/browser/ui/cocoa/browser_window_controller_private.mm
|
| diff --git a/chrome/browser/ui/cocoa/browser_window_controller_private.mm b/chrome/browser/ui/cocoa/browser_window_controller_private.mm
|
| index 22505764c11a0f1aa08e91d4529dd056279a0674..1eb48d44a24d85ea8988f049dd873efd4259e488 100644
|
| --- a/chrome/browser/ui/cocoa/browser_window_controller_private.mm
|
| +++ b/chrome/browser/ui/cocoa/browser_window_controller_private.mm
|
| @@ -269,9 +269,7 @@ - (void)layoutSubviews {
|
|
|
| // Will update the location of the permission bubble when showing/hiding the
|
| // top level toolbar in fullscreen.
|
| - PermissionRequestManager* manager = [self permissionRequestManager];
|
| - if (manager)
|
| - manager->UpdateAnchorPosition();
|
| + [self updatePermissionBubbleAnchor];
|
|
|
| browser_->GetBubbleManager()->UpdateAllBubbleAnchors();
|
| }
|
| @@ -421,10 +419,7 @@ - (void)moveViewsForImmersiveFullscreen:(BOOL)fullscreen
|
| if (statusBubble_)
|
| statusBubble_->SwitchParentWindow(destWindow);
|
|
|
| - // Updates the bubble position.
|
| - PermissionRequestManager* manager = [self permissionRequestManager];
|
| - if (manager)
|
| - manager->UpdateAnchorPosition();
|
| + [self updatePermissionBubbleAnchor];
|
|
|
| // Move the title over.
|
| [destWindow setTitle:[sourceWindow title]];
|
| @@ -462,6 +457,12 @@ - (void)permissionBubbleWindowWillClose:(NSNotification*)notification {
|
| delay:YES];
|
| }
|
|
|
| +- (void)updatePermissionBubbleAnchor {
|
| + PermissionRequestManager* manager = [self permissionRequestManager];
|
| + if (manager)
|
| + manager->UpdateAnchorPosition();
|
| +}
|
| +
|
| - (void)configureFullscreenToolbarController {
|
| BOOL fullscreenForTab = [self isFullscreenForTabContentOrExtension];
|
| BOOL kioskMode =
|
|
|