| 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 c99c63fae6c0f9031e5aba28356c75398d822312..f65a5d5981bd595e5ed5bf2c6ab2113611856e9b 100644
|
| --- a/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm
|
| +++ b/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm
|
| @@ -1296,8 +1296,12 @@ NSImage* Overlay(NSImage* ground, NSImage* overlay, CGFloat alpha) {
|
|
|
| // Make a new tab. Load the contents of this tab from the nib and associate
|
| // the new controller with |contents| so it can be looked up later.
|
| + const BOOL autoEmbedFullscreen =
|
| + implicit_cast<content::WebContentsDelegate*>(browser_)->
|
| + EmbedsFullscreenWidget();
|
| base::scoped_nsobject<TabContentsController> contentsController(
|
| - [[TabContentsController alloc] initWithContents:contents]);
|
| + [[TabContentsController alloc] initWithContents:contents
|
| + andAutoEmbedFullscreen:autoEmbedFullscreen]);
|
| [tabContentsArray_ insertObject:contentsController atIndex:index];
|
|
|
| // Make a new tab and add it to the strip. Keep track of its controller.
|
| @@ -1410,8 +1414,12 @@ NSImage* Overlay(NSImage* ground, NSImage* overlay, CGFloat alpha) {
|
| // Simply create a new TabContentsController for |newContents| and place it
|
| // into the array, replacing |oldContents|. An ActiveTabChanged notification
|
| // will follow, at which point we will install the new view.
|
| + const BOOL autoEmbedFullscreen =
|
| + implicit_cast<content::WebContentsDelegate*>(browser_)->
|
| + EmbedsFullscreenWidget();
|
| base::scoped_nsobject<TabContentsController> newController(
|
| - [[TabContentsController alloc] initWithContents:newContents]);
|
| + [[TabContentsController alloc] initWithContents:newContents
|
| + andAutoEmbedFullscreen:autoEmbedFullscreen]);
|
|
|
| // Bye bye, |oldController|.
|
| [tabContentsArray_ replaceObjectAtIndex:index withObject:newController];
|
|
|