Index: chrome/browser/ui/cocoa/presentation_mode_controller.mm |
diff --git a/chrome/browser/ui/cocoa/presentation_mode_controller.mm b/chrome/browser/ui/cocoa/presentation_mode_controller.mm |
index ec9f98190f3e8f8ea6a58b837257fc15f55399ca..e114467a3050d7c9a9f260ffb632e13a7afb5860 100644 |
--- a/chrome/browser/ui/cocoa/presentation_mode_controller.mm |
+++ b/chrome/browser/ui/cocoa/presentation_mode_controller.mm |
@@ -199,12 +199,6 @@ const CGFloat kFloatingBarVerticalOffset = 22; |
NSNotificationCenter* nc = [NSNotificationCenter defaultCenter]; |
NSWindow* window = [browserController_ window]; |
- // When in presentation mode, the window's background will need to appear |
- // above the window contents. For this to happen, the window will need its |
- // own layer. This comes with a performance penalty when not fullscreen, so |
- // do not enable this by default. |
- [[window contentView] cr_setWantsLayer:YES]; |
- |
// Disable these notifications on Lion as they cause crashes. |
// TODO(rohitrao): Figure out what happens if a fullscreen window changes |
// monitors on Lion. |
@@ -240,10 +234,6 @@ const CGFloat kFloatingBarVerticalOffset = 22; |
DCHECK(inPresentationMode_); |
inPresentationMode_ = NO; |
- // Remove the layer that was created. |
- NSWindow* window = [browserController_ window]; |
- [[window contentView] cr_setWantsLayer:NO]; |
- |
[self cleanup]; |
} |