| 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 051a103f1acc29578b374b8075d2c0be1c689b84..86f81a9cf90c1fb2852334785b939092d1f638c5 100644
|
| --- a/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm
|
| +++ b/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm
|
| @@ -1264,12 +1264,8 @@ 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
|
| - andAutoEmbedFullscreen:autoEmbedFullscreen]);
|
| + [[TabContentsController alloc] initWithContents:contents]);
|
| [tabContentsArray_ insertObject:contentsController atIndex:index];
|
|
|
| // Make a new tab and add it to the strip. Keep track of its controller.
|
| @@ -1388,12 +1384,8 @@ 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
|
| - andAutoEmbedFullscreen:autoEmbedFullscreen]);
|
| + [[TabContentsController alloc] initWithContents:newContents]);
|
|
|
| // Bye bye, |oldController|.
|
| [tabContentsArray_ replaceObjectAtIndex:index withObject:newController];
|
|
|